Adjust multibuffer header fold button size (#27253)

This PR adjust the size of the fold button on the multibuffer header.
Had to make the `height` method public on the Button Like to pull that
off without other major changes.

| Before | After |
|--------|--------|
| ![CleanShot 2025-03-21 at 12  11
40@2x](https://github.com/user-attachments/assets/003b2965-b1cc-43ad-8528-2bd11cf0f9cc)
| ![CleanShot 2025-03-21 at 12  11
28@2x](https://github.com/user-attachments/assets/d4927b72-3f41-4c4b-9813-49e676170419)
|

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-03-21 12:49:54 -03:00
committed by GitHub
parent 1cca2e37b0
commit c394a3a890
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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();
@@ -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
}