Commit 8dd81b2
authored
fix: expand collapsed notch for session state dots (farouqaldori#37)
* fix: expand collapsed notch for session state dots
Add expansion width calculation for the multiple active sessions case.
When only hasMultipleActiveSessions is true (without processing,
permission, or waitingForInput), the notch now properly expands to
accommodate the crab icon and session state dots.
Previously, showClosedActivity was true but expansionWidth returned 0,
causing dots to be crammed within the fixed notch width.
* fix: add right-side spacer for symmetric notch expansion with session dots
The expansionWidth calculation and closedContentWidth property weren't
actually driving layout - expansion worked via HStack content sizing.
When only hasMultipleActiveSessions was true (no processing/pending/
waitingForInput), the right side had no content, causing asymmetric
expansion unlike other activity states.
Changes:
- Add empty Color.clear spacer on right side when showing session dots
- Update expansionWidth formula to match symmetric layout (2 * sideWidth)1 parent dbc99f6 commit 8dd81b2
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
327 | 333 | | |
328 | 334 | | |
329 | 335 | | |
330 | | - | |
| 336 | + | |
| 337 | + | |
331 | 338 | | |
332 | 339 | | |
333 | 340 | | |
| |||
340 | 347 | | |
341 | 348 | | |
342 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
343 | 356 | | |
344 | 357 | | |
345 | 358 | | |
| |||
0 commit comments