From c66cf6a98c5e52a7a2d1434ed54295c06beb368e Mon Sep 17 00:00:00 2001 From: kernelkind Date: Mon, 23 Sep 2024 17:11:31 -0400 Subject: [PATCH] change side panel width to 64.0 matches figma design Signed-off-by: kernelkind --- src/app.rs | 2 +- src/ui/side_panel.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index e93d272..7dd8afd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -951,7 +951,7 @@ fn render_damus_desktop(ctx: &egui::Context, app: &mut Damus) { fn timelines_view(ui: &mut egui::Ui, sizes: Size, app: &mut Damus, columns: usize) { StripBuilder::new(ui) - .size(Size::exact(40.0)) + .size(Size::exact(ui::side_panel::SIDE_PANEL_WIDTH)) .sizes(sizes, columns) .clip(true) .horizontal(|mut strip| { diff --git a/src/ui/side_panel.rs b/src/ui/side_panel.rs index 9d1cbe1..49fb2c0 100644 --- a/src/ui/side_panel.rs +++ b/src/ui/side_panel.rs @@ -10,6 +10,8 @@ use crate::{ use super::{ProfilePic, View}; +pub static SIDE_PANEL_WIDTH: f32 = 64.0; + pub struct DesktopSidePanel<'a> { app: &'a mut Damus, }