Skip to content

fix(site): keep the companions shelf's category in its column on phones - #62486

Merged
thdxr merged 1 commit into
devfrom
companions-category
Nov 7, 2026
Merged

thdxr merged 1 commit into
devfrom
companions-category

Conversation

@thdxr

@thdxr thdxr commented Nov 7, 2026

Copy link
Copy Markdown
Member

the shelf's category used data-slot="body", which the surrounding block lays out as its own column (grid-column: 2 / -1, flex), so in the production css order the category ran under the Free button on phones. renamed it to category.

@thdxr
thdxr merged commit 0b00d08 into dev Nov 7, 2026
12 checks passed
@thdxr
thdxr deleted the companions-category branch November 7, 2026 01:57

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks right. The category <span> matched the site-wide block rule [data-component="block"] [data-slot="body"] in site.css (grid-column: 2 / -1, flex column) because the shelf sits inside a block. Renaming the slot to category takes it out of that rule. Nothing else in the site's CSS targets [data-slot="category"]. I checked this by reading the code. I couldn't render the phone layout here, so before/after phone screenshots would help confirm it.

Public API: unchanged (site CSS and markup only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant