From 69d161e511ce37e873329963e80103705ed582e0 Mon Sep 17 00:00:00 2001 From: Casper Rogild Storm Date: Tue, 5 Mar 2024 14:06:51 +0100 Subject: [PATCH] feat: fix height --- src/buffer/user_context.rs | 3 +-- src/screen/dashboard/side_menu.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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()