mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-20 18:07:59 +02:00
Fix for extra whitespace in titles
This commit is contained in:
parent
f5bfd9d4d1
commit
2aaff02db8
@ -661,7 +661,8 @@ function setupTruncatedElementTitles() {
|
||||
|
||||
for (let i = 0; i < elements.length; i++) {
|
||||
const element = elements[i];
|
||||
if (element.getAttribute("title") === null) element.title = element.innerText;
|
||||
if (element.getAttribute("title") === null)
|
||||
element.title = element.innerText.trim().replace(/\s{2,}/, " ");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user