Commit a6f10cf
Restore alts popover min-width and gate preview to char keys
Two related fixes the previous commit regressed:
* Alternates popover had its minWidth=anchor-width removed, so under
narrow anchor keys the popover collapsed to content width and looked
undersized / clipped. Restore minWidth on the non-preview branch and
add justify-content:center on .popover so the original empty-space-
on-right complaint is addressed symmetrically rather than by
removing the constraint.
* The simple preview bubble was firing for every non-alt key, including
space, return, backspace, and modifiers, which already have their
own press feedback. Gate it behind key.action.kind === "char" so
only character keys surface a preview.
Preview popover still gets width:=anchor-width (exact match, no min
fallback) via #positionPopover.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2cf448e commit a6f10cf
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