diff --git a/src/buffer/user_context.rs b/src/buffer/user_context.rs index 9686670ce..42e52c499 100644 --- a/src/buffer/user_context.rs +++ b/src/buffer/user_context.rs @@ -1,6 +1,5 @@ use data::User; use iced::widget::{button, text}; -use iced::Length; use crate::theme; use crate::widget::{context_menu, Element}; @@ -55,7 +54,7 @@ pub fn view<'a>(content: impl Into>, user: User) -> Element button(text(content).style(theme::Text::Primary)) .width(length) - .height(Length::Fixed(27.0)) + .height(length) .style(theme::Button::Context) .on_press(message) .into() diff --git a/src/screen/dashboard/side_menu.rs b/src/screen/dashboard/side_menu.rs index 9f9a39ba1..b64f7e85b 100644 --- a/src/screen/dashboard/side_menu.rs +++ b/src/screen/dashboard/side_menu.rs @@ -240,7 +240,7 @@ fn buffer_button<'a>( button(text(content).style(theme::Text::Primary)) .width(length) - .height(Length::Fixed(27.0)) + .height(length) .style(theme::Button::Context) .on_press(message) .into()