Repository navigation
Commit cee7ea2
fix(web): Cite button opens below the selection, not under the pointer
After a mouse selection on assistant text, the Cite button opened with its
corner at the mouseup point, so the next click a few px away (often to clear
the selection) landed on it and added an unintended citation. Anchor it below
the end of the selection for mouse selections too, as keyboard selections and
off-text releases already do. The terminal's selection actions are unchanged.
Fixes #29209
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 5be76ab commit cee7ea2
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 115 | | |
125 | 116 | | |
126 | 117 | | |
| |||
132 | 123 | | |
133 | 124 | | |
134 | 125 | | |
135 | | - | |
| 126 | + | |
136 | 127 | | |
137 | 128 | | |
138 | 129 | | |
| |||
0 commit comments