From 3254f5110a40e0ce80a55db405246a2c9b4259d5 Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 15 Oct 2026 21:12:59 +0200 Subject: [PATCH] Fix disk stats tooltip text getting clipped at the window edge The used/free and read/write lines had no Layout.fillWidth or elide, so long values ran past the popup's fixed width and were cut off by the window bounds instead of wrapping or eliding. Also widened the disk popup slightly (300 -> 340) so typical values fit without eliding. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94 --- quickshell/default/Bar.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quickshell/default/Bar.qml b/quickshell/default/Bar.qml index ef201c0..1cdbdaf 100644 --- a/quickshell/default/Bar.qml +++ b/quickshell/default/Bar.qml @@ -1321,7 +1321,7 @@ Variants { screen: bar.modelData anchors { top: true; right: true } margins { top: 34; right: bar.width - (rightRow.x + statsPopupAnchor.x + statsPopupAnchor.width) } - implicitWidth: (bar.hovered === "cpu" && bar.perCore.length > 0) ? 320 : (bar.hovered === "vol" ? 300 : (bar.hovered === "disk" ? 300 : 220)) + implicitWidth: (bar.hovered === "cpu" && bar.perCore.length > 0) ? 320 : (bar.hovered === "vol" ? 300 : (bar.hovered === "disk" ? 340 : 220)) implicitHeight: tooltipCol.implicitHeight + 20 color: "transparent" WlrLayershell.namespace: "stats-tooltip" @@ -1428,12 +1428,16 @@ Variants { text: modelData.pct + "%" + " · " + (root.isGerman ? "Belegt " : "Used ") + modelData.used.toFixed(0) + " / " + modelData.total.toFixed(0) + " GiB" + " · " + (root.isGerman ? "Frei " : "Free ") + modelData.avail.toFixed(0) + " GiB" font.family: "JetBrainsMono Nerd Font" font.pixelSize: 11 + elide: Text.ElideRight + Layout.fillWidth: true color: root.palette.color8 } Text { text: "R: " + root.fmtRate(modelData.readKBps) + " W: " + root.fmtRate(modelData.writeKBps) font.family: "JetBrainsMono Nerd Font" font.pixelSize: 11 + elide: Text.ElideRight + Layout.fillWidth: true color: root.palette.color8 } }