Servernamen im System-Monitor nur noch als Tooltip statt ueberlappend

Bei mehreren Kacheln ueberlagerten sich die fest eingezeichneten
Servernamen im mittleren (Status-)Monitor. Der Name erscheint jetzt
nur noch als SVG-<title>-Tooltip beim Hoover ueber die jeweilige
Kachel, deren gesamte Flaeche als Hoover-Bereich dient.

Schliesst #73
This commit is contained in:
fds2610-bot 2026-09-02 12:31:48 +02:00
parent adb5af8bee
commit 7fd7703d9c
2 changed files with 6 additions and 13 deletions

View file

@ -280,11 +280,6 @@ header.office-header h1 {
fill: #f87171;
}
.system-tile-label {
fill: var(--color-text-inverse);
font-size: 12px;
}
.monitor-placeholder-text {
fill: #64748b;
font-size: 15px;

View file

@ -413,7 +413,13 @@ function renderSystemMonitor(frame, systems, onConfigClick) {
const tileX = gridX + col * (tileSize + tileMargin);
const tileY = gridY + row * (tileSize + tileMargin);
// Issue #73: Servernamen ueberlappten sich bei mehreren Kacheln, deshalb kein fest
// eingezeichneter Text mehr - der Name erscheint nur noch als <title>-Tooltip, der ueber
// der ganzen Kachel (system-tile-bg deckt sie komplett ab) beim Hoover angezeigt wird.
const tileGroup = el("g", { class: `system-tile status-${system.status}` });
const tileTitle = el("title");
tileTitle.textContent = system.name;
tileGroup.appendChild(tileTitle);
tileGroup.appendChild(
el("rect", { x: tileX, y: tileY, width: tileSize, height: tileSize, rx: 6, class: "system-tile-bg" })
);
@ -425,14 +431,6 @@ function renderSystemMonitor(frame, systems, onConfigClick) {
);
tileGroup.appendChild(el("circle", { cx: tileX + 18, cy: tileY + 17, r: 3, class: "system-tile-led" }));
tileGroup.appendChild(el("circle", { cx: tileX + 18, cy: tileY + 37, r: 3, class: "system-tile-led" }));
tileGroup.appendChild(
text(system.name, {
x: tileX + tileSize / 2,
y: tileY + tileSize - 8,
class: "system-tile-label",
"text-anchor": "middle",
})
);
g.appendChild(tileGroup);
});