mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +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.innerText = "";
|
||||||
element.insertAdjacentHTML(
|
element.insertAdjacentHTML(
|
||||||
"beforeend",
|
"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>
|
<use href="#globe-americas"></use>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="relative-time">${localDateBuilder.formatted}</span>
|
<span class="relative-time">${localDateBuilder.formatted}</span>`
|
||||||
`
|
|
||||||
);
|
);
|
||||||
element.setAttribute("aria-label", localDateBuilder.textPreview);
|
element.setAttribute("aria-label", localDateBuilder.textPreview);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user