# fix\(web\): commit slider steps reliably, scope pre sizing, measure nested labels · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/5ce99c20bbc11541510915e01815c3bcd2680653)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 5ce99c20bbc11541510915e01815c3bcd2680653

Requested commit: 5ce99c20bbc11541510915e01815c3bcd2680653

Commit: 5ce99c20bbc11541510915e01815c3bcd2680653

Tree: 8eb0d87bc56e86acfcec7efd0b84f0a5c1d8c488

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): commit slider steps reliably, scope pre sizing, measure nested labels

Three review findings:

- High: track clicks and keyboard steps fire input and change in one task,
  before any re-render, so the change handler read a stale draft and dropped
  the commit. The draft now mirrors into a ref written inside the input
  handler itself, so the commit reads the same turn's value.
- The global pre font-size rule beat text-size utilities and inherited sizes
  on unrelated pre surfaces (terminal previews, approvals). The code size is
  now scoped to chat markdown code blocks; diffs and file previews already
  take it through --diffs-font-size.
- SelectValue truncates internally, so the outer label marker's scrollWidth
  matched its clipped box and the workspace/environment labels fell out of
  the strip's overflow measurement. The text width is now the largest
  scrollWidth in the label subtree.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [805813ee799fad67ed26abd5e257d8311ec15469](https://git.cafe/stienswout/t3code/commit/805813ee799fad67ed26abd5e257d8311ec15469?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/5ce99c20bbc11541510915e01815c3bcd2680653?format=markdown)
