mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:11:14 +08:00
UX: remove whitespace from rendered localdate (#27952)
This commit is contained in:
@ -40,12 +40,10 @@ export function applyLocalDates(dates, siteSettings) {
|
||||
element.innerText = "";
|
||||
element.insertAdjacentHTML(
|
||||
"beforeend",
|
||||
`
|
||||
<svg class="fa d-icon d-icon-globe-americas svg-icon" xmlns="http://www.w3.org/2000/svg">
|
||||
`<svg class="fa d-icon d-icon-globe-americas svg-icon" xmlns="http://www.w3.org/2000/svg">
|
||||
<use href="#globe-americas"></use>
|
||||
</svg>
|
||||
<span class="relative-time">${localDateBuilder.formatted}</span>
|
||||
`
|
||||
<span class="relative-time">${localDateBuilder.formatted}</span>`
|
||||
);
|
||||
element.setAttribute("aria-label", localDateBuilder.textPreview);
|
||||
|
||||
|
Reference in New Issue
Block a user