Fix case where we want it to be wide

This commit is contained in:
Danilo Leal 2025-08-12 17:11:05 -03:00
parent a040d7bc8d
commit 0b47c5cdce

View file

@ -3008,9 +3008,10 @@ impl EditorElement {
};
let toggle = IconButton::new(("expand", ix), icon_name)
.icon_color(Color::Custom(cx.theme().colors().editor_line_number))
.selected_icon_color(Color::Custom(cx.theme().colors().editor_foreground))
.icon_color(Color::Custom(cx.theme().colors().editor_line_number))
.icon_size(IconSize::Custom(rems(editor_font_size / window.rem_size())))
.shape(ui::IconButtonShape::Wide)
.width(width.into())
.on_click(move |_, window, cx| {
editor.update(cx, |editor, cx| {