Repository navigation
Dock More counted under SSR; end slot stays inside the inset (0.28.2) - #60
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c4b9d99e0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @container flow-top-row-end (width < 4.5rem) { | ||
| [data-slot="floating-header-end"] > [data-slot="button"] { | ||
| padding-inline: 0.5rem; | ||
| overflow: hidden; |
There was a problem hiding this comment.
Clip capped buttons whenever their label overflows
When the end slot is at least 4.5rem wide but a button label is still wider than the available space—for example, a translated “Sign in” label or another longer CTA—the direct-child max-width caps only the button box while its whitespace-nowrap text continues painting outside because overflow: hidden is limited to this query. The visible label can therefore cross the right inset or overlap the brand despite the new containment guarantee; apply clipping to capped end-slot buttons regardless of this fixed width threshold.
Useful? React with 👍 / 👎.
Summary
Two fixes the app rollouts found, released as 0.28.2.
data-key="\u0000more". The HTML parser turns U+0000 into U+FFFD in server-rendered markup, and hydration doesn't patch the attribute, so More measured as 0px. On dash at 320px the bar kept 5 slots and More landed partly off screen (x 281–337).data-moreinstead of a key.src/,app/ortests/(src/loaders/excluded).flex-end.No API changes.
Testing
New spec
tests/dock-ssr.spec.ts(added to the visual job):tests/floating-header.spec.tsnow covers 24 row cases: 320, 360 and 390px; "Flow Industries" and "Flow Time"; the short name "fern", a 27-character name, Join and Sign in.Measurements at 320px with "Flow Industries", light and dark:
At 360 and 390px, Join and Sign in keep their full padding.
Local checks:
bun run lintshows only the 9 warnings already onmain, andbun run typecheckpasses.dock-ssr,floating-header,floating,presence,a11yandheader.Simplify pass: the measuring class is shared between items and More. Nothing else to simplify.