Skip to content

Give the tag page topic chips room to breathe - #236

Merged
ryanportfolio merged 1 commit into
mainfrom
claude/spacing-improvements-131289
Aug 7, 2026
Merged

Give the tag page topic chips room to breathe#236
ryanportfolio merged 1 commit into
mainfrom
claude/spacing-improvements-131289

Conversation

@ryanportfolio

@ryanportfolio ryanportfolio commented Aug 7, 2026

Copy link
Copy Markdown
Owner

The topic chip row above the tag page list sat flush against the header rule and the first guide row.

Cause: .all-tags.top set margin: var(--s-4) 0 var(--s-5), and --s-5 is not defined in site/src/styles/tokens.css (the scale runs 1, 2, 3, 4, 6, 8, 12, 16). One invalid token makes the entire shorthand invalid at computed-value time, so the row got no margin at all.

Changes:

  • margin: var(--s-3) 0 var(--s-4) using real tokens.
  • Split gap: 8px into column-gap: 8px / row-gap: 10px so wrapped chip lines are not nearly touching.
  • Chip padding 1px 9px to 3px 10px.

Verified in a browser against the dev server at /tags/cost-control/, 1120px wide: computed margins are now 27px above and 36px below (previously 0 and 0), the two wrapped chip lines sit 10px apart, and chip padding is 3px 10px.

Note for later, outside this change: site/src/components/SkillShelf.astro:123 uses the same undefined --s-5 for margin-top, so that margin is also silently zero.

The top chip row used var(--s-5), which is not a defined spacing token,
so the whole margin shorthand was invalid and the row collapsed against
the header rule above and the list below. Use real tokens, split the
flex gap so wrapped chip rows get more vertical room, and pad the chips.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ryanportfolio
ryanportfolio merged commit e309f0d into main Aug 7, 2026
3 checks passed
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