feat(splits): Narrow width for narrow splits and mobile UI #583
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Screen.Recording.2025-12-11.at.5.45.18.PM.mov
Summary of Code Changes
1. Container Query Setup
File:
js/app/packages/app/component/split-layout/components/SplitContainer.tsx@container/splitto the content wrapper div (line 110) to enable container queries for split width detection2. Main Layout Structure
File:
js/app/packages/macro-entity/src/components/EntityWithEverything.tsxMain Container (line 732):
@max-sm/split:flex @max-sm/split:flex-col@max-sm/split:px-2 @max-sm/split:py-2pr-2for larger widths3. Checkbox Behavior
Lines 762-787:
@max-sm/split:hidden@max-sm/split:hidden(line 783)Lines 797-845 (Icon/Checkbox Container):
hidden @max-sm/split:flex @min-sm/split:hidden— visible only in narrow mode@max-sm/split:group-hover/icon-checkbox:opacity-0)4. Email Entity Layout (Narrow Mode)
Lines 505-567:
justify-between— subject left, timestamp right (Gmail-style)@max-sm/split:text-xs)@max-sm/split:flex-col5. Non-Email Entity Layout (Narrow Mode)
Lines 595-640:
justify-between6. Right-Side Content Repositioning
Lines 849-900:
@max-sm/split:hidden), shown inline with title/subject@max-sm/split:hidden)7. Content Hits & Notifications
Lines 901-920:
Breakpoint
@max-sm/split(640px) as the narrow width breakpointResult