mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 09:45:24 -04:00
Email reader: header grows on wrap + no slide-down at overlay break
1. Moved the min-height from .email-reader-header to .email-reader-meta (92px) inside the <600 container query. Targeting the container itself in its own @container rule was flaky; using a descendant that affects the parent's intrinsic height works reliably. 2. Dropped the margin-top:0 reset on the cluster in the <380 overlay rule — that was clearing the base -7px lift and sliding the cluster ~7px downward at the breakpoint. Now both states use the same -7px lift so the visual position is stable across the transition.
This commit is contained in:
+10
-6
@@ -28283,11 +28283,12 @@ button .spinner-whirlpool {
|
||||
padding-right: 170px;
|
||||
}
|
||||
/* Cluster wrapped to 2 rows (44px + 4 gap + 44px = 92px) sits
|
||||
absolute above the From baseline. Grow the header so its bottom
|
||||
fully contains the cluster instead of letting it peek out.
|
||||
8px top padding + 92px cluster + 8px breathing = ~108. */
|
||||
.email-reader-header {
|
||||
min-height: 108px;
|
||||
absolute above the From baseline. Set min-height on the meta
|
||||
(a descendant of the container, more reliable than targeting
|
||||
the container itself) so the header grows enough to contain
|
||||
the cluster. */
|
||||
.email-reader-meta {
|
||||
min-height: 92px;
|
||||
}
|
||||
}
|
||||
/* Very narrow reader: once the chip span has shrunk to its ~4
|
||||
@@ -28302,7 +28303,10 @@ button .spinner-whirlpool {
|
||||
padding-right: 0;
|
||||
}
|
||||
.email-reader-meta > .email-reader-actions-inline {
|
||||
margin-top: 0;
|
||||
/* Keep the same -7px lift as the medium-width state so the
|
||||
cluster doesn't slide ~4px DOWN when it transitions into
|
||||
overlay mode. */
|
||||
/* margin-top stays inherited at -7px from the base rule. */
|
||||
/* 158px content + 22px padding-left so the inner row still fits
|
||||
3 icons cleanly. */
|
||||
min-width: 180px;
|
||||
|
||||
Reference in New Issue
Block a user