Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve spacing of items in buffer search bar

Marshall Bowersb493d8f6c0b8
diff --git a/crates/search2/src/buffer_search.rs b/crates/search2/src/buffer_search.rs
index ebaf111e606..51557320f78 100644
--- a/crates/search2/src/buffer_search.rs
+++ b/crates/search2/src/buffer_search.rs
@@ -214,6 +214,8 @@ impl Render for BufferSearchBar {
}
h_stack()
+ .w_full()
+ .gap_2()
.key_context(key_context)
.on_action(cx.listener(Self::previous_history_query))
.on_action(cx.listener(Self::next_history_query))
@@ -239,7 +241,6 @@ impl Render for BufferSearchBar {
.when(self.supported_options().word, |this| {
this.on_action(cx.listener(Self::toggle_whole_word))
})
- .w_full()
.child(
h_stack()
.flex_1()
@@ -268,6 +269,7 @@ impl Render for BufferSearchBar {
)
.child(
h_stack()
+ .gap_2()
.flex_none()
.child(
h_stack()