diff options
| author | Joe Carstairs <me@joeac.net> | 2026-02-21 14:17:09 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-02-21 14:17:09 +0000 |
| commit | d119e7d7ba41ce7ee479336ce5de287ef62a2737 (patch) | |
| tree | 3a0940a44eef3fbd0a48b52887a9a54a36b1f18f /schist_desktop_gui/src/gui/components | |
| parent | 413afad1fdf1d15fefc1b709f2eba1332a110608 (diff) | |
task-085: table is fixed width
Diffstat (limited to 'schist_desktop_gui/src/gui/components')
| -rw-r--r-- | schist_desktop_gui/src/gui/components/transactions_view/view_transactions_view.rs | 12 |
1 files 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) |
