From d119e7d7ba41ce7ee479336ce5de287ef62a2737 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 21 Feb 2026 14:17:09 +0000 Subject: task-085: table is fixed width --- .../components/transactions_view/view_transactions_view.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/schist_desktop_gui/src/gui/components/transactions_view/view_transactions_view.rs b/schist_desktop_gui/src/gui/components/transactions_view/view_transactions_view.rs index 72f4c8f..d6ca180 100644 --- a/schist_desktop_gui/src/gui/components/transactions_view/view_transactions_view.rs +++ b/schist_desktop_gui/src/gui/components/transactions_view/view_transactions_view.rs @@ -84,16 +84,14 @@ impl<'a> Viewable<'a, Message> for TransactionsView { .unwrap_or_else(Vec::default) }); - let table = table(columns, rows); + let table = Scrollable::new(table(columns, rows)).direction(scrollable::Direction::Both { + horizontal: Scrollbar::default(), + vertical: Scrollbar::default(), + }); row![ Container::new(navigation).width(Length::FillPortion(1)), - Scrollable::new(table) - .direction(scrollable::Direction::Both { - horizontal: Scrollbar::default(), - vertical: Scrollbar::default(), - }) - .width(Length::FillPortion(3)), + Container::new(table).width(Length::FillPortion(3)), ] .align_y(alignment::Vertical::Center) .height(Length::Fill) -- cgit v1.2.3