Skip to content

[pull] main from tldraw:main#620

Merged
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main
Jun 27, 2026
Merged

[pull] main from tldraw:main#620
pull[bot] merged 1 commit into
code:mainfrom
tldraw:main

Conversation

@pull

@pull pull Bot commented Jun 27, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…9416)

In order to avoid a redundant group header when the sidebar file list
only has one time-based group (e.g. only "Today", or only "Older"), this
PR hides the solo section's title via CSS.

Each section renders as a `sidebarFileSectionWrapper` element directly
inside the file list container, and empty groups render as `null` rather
than empty nodes. So "only one section is present" is exactly
`:only-child`, and a single CSS rule hides that section's header. As
soon as a second section appears, all headers return.

Closes #9412

### Change type

- [x] `improvement`

### Test plan

1. Open tldraw.com with an account whose files all fall into a single
time group (e.g. all created today).
2. Confirm the sidebar shows the file list with no "Today" header.
3. Create or open an older file so a second group appears.
4. Confirm both group headers ("Today", "Older", etc.) are now shown.

### Release notes

- Hide the sidebar file-group header when only one group is present.

### Code changes

| Section | LOC change |
| ------- | ---------- |
| Apps    | +6 / -0    |
@pull pull Bot locked and limited conversation to collaborators Jun 27, 2026
@pull pull Bot added the ⤵️ pull label Jun 27, 2026
@pull pull Bot requested a deployment to bemo-canary June 27, 2026 09:13 Queued
@pull pull Bot merged commit 8e1d0e9 into code:main Jun 27, 2026
1 of 7 checks passed
@pull pull Bot requested a deployment to deploy-staging June 27, 2026 09:13 Abandoned
@pull pull Bot requested a deployment to deploy-production June 27, 2026 09:13 Queued
@pull pull Bot requested a deployment to bemo-canary June 27, 2026 09:13 Queued
@pull pull Bot requested a deployment to vsce publish June 27, 2026 09:13 Queued
@pull pull Bot requested a deployment to deploy-staging June 27, 2026 09:13 Queued
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant