mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
fix(ui): drop the redundant Today briefing link, align the sheet close control
The Today hero carried a read-the-full-briefing link to /insights while the health-score ring above it already opened the same page — two doors to one room in a single card. The ring stays; the link and its six locale strings are gone. The document sheet's close control sat at the plain p-4 right edge, but an icon button carries its own inner inset, so the glyph landed ~28px from the frame against a title starting at 16px. Trim the right padding by that inset when a consumer renders its own trailing control, leaving the tap target reaching the frame. Also rewrites the v1.30.15-v1.30.31 changelog entries: they had drifted into summary lines, internal vocabulary and reasoning asides that do not belong in a release note.
This commit is contained in:
1 parent
db86b4f76d
commit
e4f5aa0b09
10 files changed
+127
-102
No files matched your search
@@ -174,7 +174,19 @@ export function ResponsiveSheet({
|
||||
// the `p-4` right edge instead of being pushed in by an empty
|
||||
// reserved gutter.
|
||||
showCloseButton && "pr-12",
|
||||
headerAction && "flex-row items-start justify-between gap-3",
|
||||
// Optical alignment for a consumer-rendered trailing control.
|
||||
// An icon button carries its own inner inset (a 20px glyph
|
||||
// centred in a 44px tap target sits 12px in), so at the plain
|
||||
// `p-4` right edge the GLYPH lands ~28px from the frame while
|
||||
// the title starts at 16px — visibly not flush. Trim the right
|
||||
// padding by that inset so the glyph aligns with the title's
|
||||
// edge; the tap target still reaches the frame.
|
||||
headerAction &&
|
||||
!showCloseButton &&
|
||||
"flex-row items-start justify-between gap-3 pr-1 sm:pr-2",
|
||||
headerAction &&
|
||||
showCloseButton &&
|
||||
"flex-row items-start justify-between gap-3",
|
||||
)}
|
||||
>
|
||||
{headerAction ? (
|
||||
|
||||
Reference in new issue
Block a user