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 | |--------|--------| |  |  | Release Notes: - N/A
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user