Improve spacing of items in buffer search bar

Marshall Bowers created

Change summary

crates/search2/src/buffer_search.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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()