Adjust code actions menu spacing (#17378)

A slight design touch up on this component.

| Before | After |
|--------|--------|
| <img width="252" alt="Screenshot 2024-09-04 at 7 35 47 PM"
src="https://github.com/user-attachments/assets/a40c1c63-cb6c-4e82-b841-1be98e7528a0">
| <img width="252" alt="Screenshot 2024-09-04 at 7 36 53 PM"
src="https://github.com/user-attachments/assets/4656ee85-b1fc-449d-93d2-eebcce8a38d8">
|

---

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-09-04 19:52:03 -03:00 committed by GitHub
parent 965b23fffe
commit 09b7286279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1488,7 +1488,8 @@ impl CodeActionsMenu {
let selected = selected_item == item_ix;
let colors = cx.theme().colors();
div()
.px_2()
.px_1()
.rounded_md()
.text_color(colors.text)
.when(selected, |style| {
style
@ -1541,8 +1542,7 @@ impl CodeActionsMenu {
},
)
.elevation_1(cx)
.px_2()
.py_1()
.p_1()
.max_h(max_height)
.occlude()
.track_scroll(self.scroll_handle.clone())