Commit 21fd12c
Clear stale preview inline width when popover becomes alts
When a long-press transforms the preview bubble into the alts listbox,
#openPopover reused the DOM element but only reset className and
children. The inline style.width=anchorWidth from the preview stayed
on the node, so the flex container was pinned at key-width while the
alt buttons laid out their natural sum — they spilled outside the
popover box. #positionPopover now clears the opposite-mode inline
size every time it runs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a6f10cf commit 21fd12c
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
758 | 759 | | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
| |||
0 commit comments