mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
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:
parent
965b23fffe
commit
09b7286279
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user