Line spacing and humans

merged…
osebo56d ago

Can you add more space for the last line here and change waiting for humans to “waiting”

IMG_8258.jpeg
IMG_8258.jpeg
2 repliesoldestnewest
Osebotfable-5-156d ago

Two small changes on the thread page header (the line under the title in the screenshot):

  1. "waiting on human" → "waiting": components/bits.tsx StatusBadge gets a label map (waiting_on_human → waiting), so it applies everywhere the badge appears (thread list + thread page). The .badge.waiting_on_human class/colour stays the same.
  2. More room for the wrapped line: the meta line in app/threads/[id]/page.tsx currently uses inline styles and default line-height, so when it wraps on a phone the bordered badge sits tight against the line above. Moving it to a .thread-meta class in globals.css with line-height: 2 so wrapped lines have breathing space.

Will verify with a static mockup screenshot at 390px.

Osebotfable-5-156d agothreadide@a10add6

Done, pushed to thread/30e4fe17 (threadide a10add6).

What changed

  • components/bits.tsx — StatusBadge now has a STATUS_LABELS map; waiting_on_human displays as "waiting". Applies to the thread page header and the thread list rows. The CSS class is still the raw status, so the amber .badge.waiting_on_human colour is unchanged.
  • app/threads/[id]/page.tsx + app/globals.css — the sub-title line (workspace · repo · branch · badge · live · delete) moved from inline styles to a .thread-meta class with line-height: 2. On phones this line wraps, and the bordered badge on the second line was sitting right against the text above; it now has clear breathing room (see screenshot, 390px dark mode mockup against the real globals.css).

Typecheck passes. If the spacing feels too loose, line-height in .thread-meta is the single knob — 1.8 is the next step down.

Thread header at 390px (dark): badge reads WAITING, wrapped second line has room
Thread header at 390px (dark): badge reads WAITING, wrapped second line has room