More round

merged…
osebo42d ago

I’d love to round more do the corners of elements in this app… can you try and send updates?

10 repliesoldestnewest
Osebotfable-5-142d ago

Every corner in app/globals.css hangs off a single --radius: 2px token (vals.ai-style "edge" boxes), so this is mostly a token change plus a small scale so big surfaces round more than tiny chips.

Plan:

  1. Replace the single token with a three-step scale: --radius-sm (badges, inline code, bubble) / --radius (buttons, inputs, selects, chips, pills) / --radius-lg (cards, post cards, popovers, compose dock, code blocks, images).
  2. Point each rule at the right step; keep the few border-radius: 0 cases that are structural (thread-list rows, phone nav panel edge).
  3. Mockup + screenshots before/after at phone and desktop widths, then push.
Osebotfable-5-142d agothreadide@9692f18

Pushed on thread/4f9142c7 (9692f18). CSS only, one file.

What changed (app/globals.css)
The whole UI was driven by a single --radius: 2px. It is now a three-step scale in :root:

tokenvalueused by
--radius-sm4px.badge, inline code, the reply-count bubble
--radius6pxbuttons, inputs, selects, .seg, thread rows, chips, PR pills, popover menu items (unchanged selectors, just a bigger value)
--radius-lg10px.card (posts, workspace panels, reply cards), .user-popover, .thread-menu, pre / diff blocks, the compose textarea, post and attachment images

Badges stay at 4px on purpose: at 18px tall anything bigger turns them into pills, which the vals.ai label system deliberately isn't. .card.thread-list keeps radius: 0 since it's the boxless hairline-row list.

Verification
Static mockup of the thread page + home filter row linking the real stylesheet, screenshotted at 390px before/after (attached) and at 1000px light/dark. No JS changes, so nothing to run beyond that.

If you want it rounder still, the three numbers in :root are the only knobs; e.g. 6 / 8 / 14px gives a noticeably softer look without touching anything else. Happy to push a variant if you'd like to compare.

Thread page mockup at 390px: before (flat 2px) vs after (4 / 6 / 10px scale)
Thread page mockup at 390px: before (flat 2px) vs after (4 / 6 / 10px scale)
Osebot42d ago

Merged threadide #86 by @osebo (merge, 3c02763).

oseboasked Osebot42d ago

Can we left aligned the reply and post run button in the container?

Osebotfable-5-142d ago

Reading this as: the primary button in the compose dock should sit at the left edge of the container at its natural width, in both states.

Today:

  • Collapsed: "Reply" is first in the row, but ≤560px it stretches to fill the row (flex: 1 1 auto), so it reads as centred/full-width rather than left-aligned.
  • Open form: "Post & run" is the LAST item in .row, after Ask Claude / + Image / model / Kind, so on desktop it lands at the right end; ≤560px it takes a full-width line of its own.

Plan:

  1. components/composer.tsx: move the submit button (+ the cancel link) to the front of .row, before the Ask Claude checkbox and the pickers.
  2. app/globals.css: drop the phone-only stretch rules (.compose-collapsed > button { flex: 1 1 auto }, form.compose .row > button { flex: 1 1 100% }) so Reply / Post keep their natural width and hug the left edge; the model/kind pickers keep wrapping after.
  3. Mockup screenshot at 390px and 1000px, push.
Osebotfable-5-142d agothreadide@79d2860

Pushed on thread/4f9142c7 (79d2860). Two files, no logic changes.

What changed

  • components/composer.tsx: the submit button ("Post" / "Post & run") and the cancel link now come FIRST in the options row, before Ask Claude / + Image / model / Kind. Previously they were last, so on desktop the button landed at the right end of the row.
  • app/globals.css: removed the two phone-only stretch rules (.compose-collapsed > button { flex: 1 1 auto } and form.compose .row > button { flex: 1 1 100% }). Reply and Post & run now keep their natural width and hug the left edge of the dock at every viewport. The model picker keeps .row-right, so on desktop model + Kind still sit at the right; on phones they wrap under the button row.

Result

collapsed:  [REPLY] [TOP]
open:       [POST & RUN] cancel [Ask Claude] [+ Image] ...... [model] [Kind]

Verification: tsc --noEmit clean; static mockups linking the real stylesheet at 390px (before/after, both states) and 1000px, attached.

One trade-off worth knowing: the ≤560px Reply button is no longer a full-width thumb target (that was the earlier reasoning for the stretch). If you'd rather keep it wide on phones and only left-align the open-form button, that's a one-line revert in the .compose-collapsed block; say the word.

Collapsed compose dock at 390px: before (Reply stretched full-width) vs after (Reply left-aligned, natural width)
Collapsed compose dock at 390px: before (Reply stretched full-width) vs after (Reply left-aligned, natural width)
Open form at 390px: before (Post & run last, full-width line) vs after (Post & run + cancel first, left-aligned)
Open form at 390px: before (Post & run last, full-width line) vs after (Post & run + cancel first, left-aligned)
Open form at 1000px after: Post & run leads the row, model/Kind pickers sit at the right
Open form at 1000px after: Post & run leads the row, model/Kind pickers sit at the right
oseboasked Osebot42d ago

I meant to keep the button width but left align the text in the button

Osebotfable-5-142d ago

Got it, I misread the first ask. Correcting on the same branch (PR #87 is still open with the wrong change):

  1. Revert 79d2860: the submit button + cancel go back to the END of form.compose .row, and the phone stretch rules return (Reply flex: 1 1 auto, Post & run flex: 1 1 100% ≤560px), so the buttons keep their old width and position.
  2. Add justify-content: flex-start / text-align: left to those two stretched buttons so the label hugs the left edge of the button instead of being centred. Buttons are display: inline-flex; justify-content: center, so this only shows when the button is wider than its text, i.e. the phone layouts; desktop (natural width) is unchanged.
  3. Mockup screenshot at 390px, push, update the PR body.
Osebotfable-5-142d agothreadide@3bb7bac

Sorry for the misread. Pushed on thread/4f9142c7 (3bb7bac); PR #87 now carries the corrected change and its body is updated.

What changed

  • 40f0f43 reverts the earlier commit: submit button + cancel are back at the end of the options row, and the phone stretch rules return, so Reply fills the row and Post & run gets its own full-width line ≤560px, exactly as on main.
  • 3bb7bac (app/globals.css, 7 lines): those two ≤560px rules now carry justify-content: flex-start; text-align: left, so the label hugs the left edge of the wide button. Top / Stop / cancel are explicitly kept centred.

Net diff vs main is only the CSS; components/composer.tsx is identical to main again.

Why nothing changes on desktop: button is inline-flex with centred content, and above 560px these buttons are natural-width, so there is no spare room for the label to move in. The alignment only shows where the button is wider than its text (phones).

Verification: static mockup linking the real stylesheet, screenshotted at 390px before/after (attached) and 1000px. If you'd like the left-aligned label to also apply to other wide buttons (e.g. Sign in on the gate), that's a one-line addition to the base button rule; say the word.

Compose dock at 390px: before (main, labels centred) vs after (same button widths, Reply / Post & run labels left-aligned)
Compose dock at 390px: before (main, labels centred) vs after (same button widths, Reply / Post & run labels left-aligned)
Osebot42d ago

Merged threadide #87 by @osebo (merge, e974b87).