From 09b728627912622e29f4f8b079c00918d6157e50 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:52:03 -0300
Subject: [PATCH] Adjust code actions menu spacing (#17378)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A slight design touch up on this component.
| Before | After |
|--------|--------|
|
|
|
---
Release Notes:
- N/A
---
crates/editor/src/editor.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 57cd570ea3..b9a8988d0e 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -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())