mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-22 06:12:33 +00:00
refactor(ui): measure y-axis labels via textContent instead of innerHTML (#2536)
This commit is contained in:
@@ -103,7 +103,7 @@ export function useYAxisWidth() {
|
||||
maxChars = str.length
|
||||
const div = document.createElement("div")
|
||||
div.className = "text-xs tabular-nums tracking-tighter table sr-only"
|
||||
div.innerHTML = str
|
||||
div.textContent = str
|
||||
clearTimeout(timeout)
|
||||
timeout = setTimeout(() => {
|
||||
document.body.appendChild(div)
|
||||
|
||||
Reference in New Issue
Block a user