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.

Touch up rounding on the sides of mode switcher

Piotr Osiewicz0253ff304371
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index 4d86134a1f6..9550ca6e895 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -1395,6 +1395,7 @@ impl ProjectSearchBar {
.style_for(state)
.clone();
style.container.border.right = false;
+
Flex::row()
.with_child(
Label::new(icon, style.text.clone())
@@ -1410,7 +1411,7 @@ impl ProjectSearchBar {
)
.contained()
.constrained()
- .with_max_width(theme.titlebar.avatar_ribbon.width / 2.)
+ .with_max_width(theme.titlebar.avatar_ribbon.width / 3.)
.aligned()
.bottom(),
)
@@ -1494,7 +1495,7 @@ impl ProjectSearchBar {
)
.contained()
.constrained()
- .with_max_width(theme.titlebar.avatar_ribbon.width / 2.)
+ .with_max_width(theme.titlebar.avatar_ribbon.width / 3.)
.aligned()
.bottom(),
)