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.

Adjust multibuffer header fold button size (#27253)

Danilo Lealc394a3a890ff
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 86cdbeb7be1..77ca322b7c1 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -2283,7 +2283,7 @@ impl EditorElement {
});
})
.tooltip(Tooltip::for_action_title(
- "Expand excerpt",
+ "Expand Excerpt",
&crate::actions::ExpandExcerpts::default(),
))
.into_any_element();
@@ -2903,8 +2903,8 @@ impl EditorElement {
.child(
ButtonLike::new("toggle-buffer-fold")
.style(ui::ButtonStyle::Transparent)
- .size(ButtonSize::Large)
- .width(px(24.).into())
+ .height(px(28.).into())
+ .width(px(28.).into())
.children(toggle_chevron_icon)
.tooltip({
let focus_handle = focus_handle.clone();
diff --git a/crates/ui/src/components/button/button_like.rs b/crates/ui/src/components/button/button_like.rs
index e9ea85b01da..dc5aca8ca3a 100644
--- a/crates/ui/src/components/button/button_like.rs
+++ b/crates/ui/src/components/button/button_like.rs
@@ -398,7 +398,7 @@ impl ButtonLike {
self
}
- pub(crate) fn height(mut self, height: DefiniteLength) -> Self {
+ pub fn height(mut self, height: DefiniteLength) -> Self {
self.height = Some(height);
self
}