From 43513a3ebe14c95c481081a7900ba589ffcf391c Mon Sep 17 00:00:00 2001 From: Karl Bullock Date: Sun, 13 Sep 2026 14:34:23 +0000 Subject: [PATCH] [2.x] fix: align the post scrubber track with its chevrons The scrubber's track sat about five pixels left of the two chevron buttons that cap it, so the line and the bar did not line up with the icons pointing at them. The buttons are flush with the container and their icons are wider than the 1px track, so the track needs a larger left margin to centre under them. Measured on a discussion: the icons centre 8.75px from the container edge, the track centred at 3.5px. Moving the scrollbar's left margin from 3px to 8px carries the track, the bar, the unread marker and the info block with it in one declaration, since all four are positioned inside it. Reported by Tutrix on the Flarum forum, who found the same offset by eye: https://discuss.flarum.org/d/39746/25 --- framework/core/less/forum/Scrubber.less | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/less/forum/Scrubber.less b/framework/core/less/forum/Scrubber.less index 53e00e34bc..9683de05a9 100644 --- a/framework/core/less/forum/Scrubber.less +++ b/framework/core/less/forum/Scrubber.less @@ -5,7 +5,11 @@ } } .Scrubber-scrollbar { - margin: 8px 0 8px 3px; + // The left margin centres the track under the chevron buttons that cap it + // above and below: those sit flush with the container, and their icons are + // wider than the 1px track, so a smaller margin leaves the whole column + // visibly left of the two icons pointing at it. + margin: 8px 0 8px 8px; height: 300px; min-height: 50px; // JavaScript sets a max-height position: relative;