Files
oak-gpui/crates
Aaron Feickert 536a958c58 Fix cursor overlap (#21999)
When the cursor has a block shape and is not on the first line, its name
popup exhibits an overlap:
<img width="171" alt="Screenshot 2024-12-13 at 18 00 54"
src="https://github.com/user-attachments/assets/1dc2ef93-020b-45c4-9fc6-db7d97f65c62"
/>

This occurs because the popup's horizontal alignment is set differently
when the cursor
[is](https://github.com/zed-industries/zed/blob/fff12ec1e5278e1825d912241f62179387ac8176/crates/editor/src/element.rs#L6383)
or
[isn't](https://github.com/zed-industries/zed/blob/fff12ec1e5278e1825d912241f62179387ac8176/crates/editor/src/element.rs#L6385)
on the first line.

This PR makes the horizontal alignment the same in both cases, which
removes the overlap:
<img width="176" alt="Screenshot 2024-12-13 at 17 57 20"
src="https://github.com/user-attachments/assets/a3c10ed5-6a1b-4040-9408-92290e9da30b"
/>

Closes #21887.

Release Notes:

- Fixed an overlap that cuts off user names when a cursor has a block
shape.
2024-12-19 16:24:30 +00:00
..
2024-12-17 22:16:59 -07:00
2024-12-17 22:16:59 -07:00
2024-12-17 22:16:59 -07:00
2024-12-19 16:24:30 +00:00
2024-04-30 23:31:59 -06:00
2024-12-16 13:39:40 -05:00
2024-12-13 14:23:02 -05:00
2024-12-17 11:39:18 -07:00
2024-12-13 14:23:02 -05:00
2024-11-18 22:56:34 +01:00
2024-12-03 23:22:26 -05:00
2024-12-13 14:23:02 -05:00
2024-12-18 17:27:25 -05:00
2024-12-17 22:16:59 -07:00
2024-12-18 17:27:25 -05:00