From b5449ea3f9e30df8048df8a9e46eec77fdfdc260 Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Thu, 11 Jun 2026 22:32:00 +0900 Subject: [PATCH] Email reader: 6px slack on cluster width to enforce 2-row max MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was fanning out to 3 rows because the 152px max-width (3 icons + 2 gaps exact) had no slack — subpixel rounding could push the third icon over and trigger another wrap. Bumped to 158px in the in-grid mode (600px breakpoint) and 180px in the absolute-overlay mode (380px breakpoint, where the 22px padding-left from the gradient fade was also eating into the 3-icon row width). --- static/style.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/static/style.css b/static/style.css index b73e5ec16..04ae3f1f2 100644 --- a/static/style.css +++ b/static/style.css @@ -28193,11 +28193,14 @@ button .spinner-whirlpool { rows. */ @container emailreader (max-width: 600px) { .email-reader-meta > .email-reader-actions-inline { - min-width: calc(48px * 3 + 4px * 2); - max-width: calc(48px * 3 + 4px * 2); - /* Right-align the (now wider) cluster so the icons stay glued - to the right edge instead of drifting to the middle when the - cluster is wider than its content (e.g. a 2-row stack of 3). */ + /* 3 icons (48px each) + 2 gaps (4px each) = 152px exact. Adding + 6px slack so subpixel rounding can't tip a row from 3 to 2 + icons and fan the cluster into a 3rd row. */ + min-width: 158px; + max-width: 158px; + /* Right-align the cluster so the icons stay glued to the right + edge instead of drifting to the middle when the cluster is + wider than its content (e.g. a 2-row stack of 3). */ justify-self: end; } } @@ -28210,7 +28213,11 @@ button .spinner-whirlpool { top: 1px; right: 0; margin-top: 0; - max-width: calc(48px * 3 + 4px * 2); + /* 158px content + 22px padding-left so the inner row still fits + 3 icons cleanly. Without the +padding the 3 icons couldn't + fit and the cluster fanned into a third row. */ + min-width: 180px; + max-width: 180px; z-index: 2; background: linear-gradient(to right, transparent 0, var(--bg) 18px); padding-left: 22px;