Skip to content

fix: merge two cmd rows into a single multiline block#5

Merged
tomdavidson merged 3 commits into
mainfrom
fix/cmd-single-block
May 11, 2026
Merged

fix: merge two cmd rows into a single multiline block#5
tomdavidson merged 3 commits into
mainfrom
fix/cmd-single-block

Conversation

@tomdavidson

Copy link
Copy Markdown
Owner

Problem

The two command rows rendered as separate bordered boxes with a gap between them, rather than a single unified block.

Fix

Replaced .cmd-rows + .cmd-row (two independent boxes) with a single .cmd-block containing .cmd-line rows separated by a subtle internal border-top.

CSS changes

  • Removed .cmd-rows and .cmd-row
  • Added .cmd-block — single box with overflow: hidden and shared background/border/radius
  • Added .cmd-line — flex row for code + copy button, no individual border
  • Added .cmd-line + .cmd-line — internal divider via border-top: 1px solid rgba(255,255,255,0.06)

JS changes

  • Removed makeCmdRow, makeAddRow, makeInstallRow
  • Added makeCmdLine(cmd, ariaLabel) — builds a single line
  • Added makeCmdBlock(plugin) — builds the unified block with both lines
  • Updated buildCard to call makeCmdBlock

@tomdavidson tomdavidson merged commit a16e151 into main May 11, 2026
1 check passed
@tomdavidson tomdavidson deleted the fix/cmd-single-block branch May 11, 2026 05:49
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