Skip to content

Give a card title its width back, and plant the pin in the corner - #114

Merged
vmillet-dev merged 1 commit into
mainfrom
fix/a-card-title-gets-its-width-back
Sep 14, 2026
Merged

vmillet-dev merged 1 commit into
mainfrom
fix/a-card-title-gets-its-width-back

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

#71 merged the badge onto the title's line and bought the body two lines. It
charged the title for them, and that only became visible once the README was
refilmed: titles truncated three words in.

What went wrong, measured

As a flex row the title was a column between the badge and the marks. On a
224px card at 1920 wide:

main here
title wrapping width 76px 136px
tick gutter 14px 8px
right reserve 50px 46px

Before #71 the title had a row of its own and wrapped inside 196px. Going to 76
is why every title ended in an ellipsis.

The head is a text block now — -webkit-box with the clamp on it rather than
on the title — with the badge and the marks inline. The title flows past them, so
it starts after the badge and its second line runs from the left edge, full
width
. The two-line budget #71 asked for is unchanged; it just belongs to the
head instead of the title.

The two paddings came down with measurements rather than guesses: the controls
start 6px past where the right reserve lands, and the tick moved to left: 2px
so the gutter it needs is 8px instead of 14.

The pin leaves the sentence

⚠️ Inline with the title, a trailing glyph wrapped onto a line of its own
whenever the title happened to end near the edge — and that second line cost the
body one of its own. "Welcome to DevBox" was doing exactly that.

It is now driven into the card's top-right corner, over the border and slightly
outside it. That spot is deliberate: the copy and ⋯ buttons sit inside at 8px
and 34px from the right edge, so anything drawn in that band would be covered the
moment the pointer arrived. and 📎 stay in the line — they say what the note
contains, where the pin says where the card is stuck.

Checked in all four states the ticket asked about (at rest, hovered, ticked,
ticked-while-hovered), on a card whose title wraps and on a todo list with no
badge. Nothing overlaps, and the pin clears the hover controls.

Checked locally

npm test 968 passing, npm run lint clean, npm run test:e2e 15/15 in 4:03.

⚠️ #113 refilms the README and is now behind this: its images show the layout
this replaces. It needs the pictures retaken once this lands.

🤖 Generated with Claude Code

Merging the badge onto the title's line made the title a flex column between
the badge and the marks: 76px of a 224px card, where a row of its own had
given it 196. The head is a text block now, so the title flows past the badge
and its second line runs the full width — 136px, measured.

The pin leaves the line of text for the card's top-right corner, outside the
band the copy and menu buttons occupy on hover.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vmillet-dev
vmillet-dev merged commit 23dccbb into main Sep 14, 2026
9 checks passed
@vmillet-dev
vmillet-dev deleted the fix/a-card-title-gets-its-width-back branch September 14, 2026 23:10
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