gui: the sidebar's magpie sits 6px further from the traffic lights

The owner asked for a little more room between the Mac window's traffic
lights and the logo at the sidebar's top. .side-top's left padding goes
from 84px to 90px (still divided by --zoom, so it stays in points).

Run at this head: brand, side-width, sidebar, side-toggle,
header-zoom-fit and sidebar-tab-top GUI tests, chromium and webkit,
92/92 on three runs. The first run, at load ~290, had 6 reds whose
names were lost (only the log's tail was kept); the three runs after
it, logs kept whole, were green. Measured in WebKit at 2x: the logo's
left edge 84 -> 90px, and at the narrowest sidebar (168px) the name
ends at 163px, inside it.
Not tried: the real Mac app.
This commit is contained in:
yetone
2026-10-23 22:23:54 +08:00
parent 3b10a403d1
commit 03951798a1
+1 -1
View File
@@ -357,7 +357,7 @@ body.side-drag, body.side-drag * { cursor: col-resize !important; user-select: n
.side-top .brand { font-size: 13.5px; }
/* the traffic lights are the sidebar's top left, as in a Mac app's sidebar;
the magpie beside them, level with them (see .top above) */
body.window.mac .side-top { height: calc(50px / var(--zoom, 1)); padding: calc(2px / var(--zoom, 1)) 0 0 calc(84px / var(--zoom, 1)); }
body.window.mac .side-top { height: calc(50px / var(--zoom, 1)); padding: calc(2px / var(--zoom, 1)) 0 0 calc(90px / var(--zoom, 1)); }
/* Windows' title bar above already shows the icon and the name */
body.window:not(.mac):not(.linux):not(.web) .side-top { height: 10px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 10px; }