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.

Shrink project search + decrease padding

Piotr Osiewicz0a0314eec924
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index aa30d472439..f0363ee5d9a 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -1693,7 +1693,7 @@ impl ToolbarItemView for ProjectSearchBar {
.as_ref()
.map(|search| {
let offset = search.read(cx).filters_enabled as usize;
- 3 + offset
+ 2 + offset
})
.unwrap_or_else(|| 2)
}
diff --git a/styles/src/style_tree/search.ts b/styles/src/style_tree/search.ts
index c8e347a57d1..6a6b2cc3ac5 100644
--- a/styles/src/style_tree/search.ts
+++ b/styles/src/style_tree/search.ts
@@ -34,7 +34,7 @@ export default function search(): any {
}
return {
- padding: { top: 32, bottom: 32, left: 32, right: 32 },
+ padding: { top: 16, bottom: 16, left: 16, right: 16 },
// TODO: Add an activeMatchBackground on the rust side to differentiate between active and inactive
match_background: with_opacity(
foreground(theme.highest, "accent"),