Align panel underlines with native bar icons

This commit is contained in:
David Heinemeier Hansson committed 2026-10-04 07:01:03 -04:00
1 parent d21e5810b1
commit 6809987892
1 file changed
+3 -2
+3 -2
View File
@@ -1886,11 +1886,12 @@ Item {
// desktop — so it underlines a top bar, overlines a bottom one, and
// points inward from a left or right one. It reads as pointing at the
// panel that opens on that side.
// Snap toward the start of the slot, matching native glyph rendering.
x: root.vertical
? (root.position === "left" ? parent.width - width - inset : inset)
: Math.round((parent.width - width) / 2)
: Math.floor((parent.width - width) / 2)
y: root.vertical
? Math.round((parent.height - height) / 2)
? Math.floor((parent.height - height) / 2)
: (root.position === "top" ? parent.height - height - inset : inset)
z: 50