# fix\(web\): truncate the context strip before collapsing, measure content not boxes · stienswout/t3code

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

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

Visibility: public

Requested revision: 0fcaa3bc7e169742ddfa9ca140ea12ae1c227c54

Requested commit: 0fcaa3bc7e169742ddfa9ca140ea12ae1c227c54

Commit: 0fcaa3bc7e169742ddfa9ca140ea12ae1c227c54

Tree: 95df8de6949497f7a7705be0a3a15f21d2b171ad

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): truncate the context strip before collapsing, measure content not boxes

The workspace trigger refused to shrink, so a large interface font made it
overflow and paint over the branch name. Every control now truncates, which
makes overlap impossible; icons-only remains the backstop for when even
truncated content cannot fit.

The overlap measurement had three faults: it summed flex-stretched boxes
(always 'full', so it always wanted to collapse), it counted a Base UI
hidden form element as 223px of phantom content, and the compiler-memoized
useEffectEvent left observers reading the first render's null element
forever. It now sums laid-out content (skipping hidden artifacts and the
absolutely-positioned compact labels, which stay measurable at natural
width), reads state through a render-synced ref, and applies hysteresis so
the boundary cannot flap.

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

```

## Parents

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

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