Commit da143dd
Universal preview bubble + natural-sized alts popover
- Preview popover on every char key press, exactly anchor-key-wide
- Alts popover transforms from the preview on long-press (same DOM
node). #positionPopover clears opposite-mode inline size each run
so a stale preview width doesn't pin the alts box at key width
while its buttons lay out their natural sum and overflow
- Alts popover uses natural flex sizing (no JS minWidth, no per-alt
width overrides); .popover justify-content: center keeps content
centered even when it's narrower than the anchor
- Simple preview path is gated to key.action.kind === "char" so
space, return, backspace, shift, layer, and globe keys no longer
surface a redundant preview
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2cf448e commit da143dd
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
498 | 500 | | |
| 501 | + | |
| 502 | + | |
499 | 503 | | |
500 | 504 | | |
501 | | - | |
502 | 505 | | |
503 | 506 | | |
504 | 507 | | |
| |||
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
753 | 761 | | |
754 | 762 | | |
755 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
167 | | - | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
| 173 | + | |
170 | 174 | | |
171 | | - | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
0 commit comments