From 1bf1819e9e28dec7a1983269377238258286b3c7 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 22 Feb 2026 21:36:54 +0000 Subject: task-085: align balance right --- .../gui/components/transactions_view/view_transactions_view.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'schist_desktop_gui/src') 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 1427830..268984b 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 @@ -32,11 +32,15 @@ impl<'a> Viewable<'a, Message> for TransactionsView { view_payee_cell, ), column( - Text::default("Quantity").width(iced::Length::Fixed(96.0)), + Text::default("Quantity") + .width(iced::Length::Fixed(96.0)) + .align_right(), view_quantity_cell, ), column( - Text::default("Balance").width(iced::Length::Fixed(96.0)), + Text::default("Balance") + .width(iced::Length::Fixed(96.0)) + .align_right(), view_balance_cell, ), ]; @@ -104,4 +108,5 @@ fn view_balance_cell(row: TransactionRow) -> Text { .width(iced::Length::Fixed(96.0)) .small() .clip() + .align_right() } -- cgit v1.2.3