Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Reorder "Select All" button
Nate Butlerf0ab27a83da2
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex 26ae86f375a..78729df936c 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -261,8 +261,8 @@ impl View for BufferSearchBar {.with_height(theme.search.search_bar_row_height);let nav_column = Flex::row()- .with_child(Flex::row().with_children(match_count)).with_child(self.render_action_button("all", cx))+ .with_child(Flex::row().with_children(match_count)).with_child(nav_button_for_direction("<", Direction::Prev, cx)).with_child(nav_button_for_direction(">", Direction::Next, cx)).constrained()diff --git a/styles/src/style_tree/search.ts b/styles/src/style_tree/search.tsindex 73f35b9dd4b..c37a4e4b9a1 100644--- a/styles/src/style_tree/search.ts+++ b/styles/src/style_tree/search.ts@@ -168,8 +168,8 @@ export default function search(): any {// Disabled elements should use a disabled state of an interactive element, not a toggleable element with the inactive state being disabledaction_button: toggleable({state: {- inactive: text_button({ variant: "ghost", layer: theme.highest, disabled: true, margin: { right: SEARCH_ROW_SPACING } }),- active: text_button({ variant: "ghost", layer: theme.highest, margin: { right: SEARCH_ROW_SPACING } })+ inactive: text_button({ variant: "ghost", layer: theme.highest, disabled: true, margin: { right: SEARCH_ROW_SPACING }, text_properties: { size: "sm" } }),+ active: text_button({ variant: "ghost", layer: theme.highest, margin: { right: SEARCH_ROW_SPACING }, text_properties: { size: "sm" } })}}),editor,@@ -183,9 +183,8 @@ export default function search(): any {border: border(theme.highest, "negative"),},match_index: {- ...text(theme.highest, "mono", "variant"),+ ...text(theme.highest, "mono", { size: "sm" }),padding: {- left: 9,right: SEARCH_ROW_SPACING,},},