Skip to content

Commit

Permalink
fix unconfirmed payments layouts with labels
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Oct 18, 2023
1 parent b1a9831 commit 4d3f4fe
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions gui/ui/src/component/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ pub fn unconfirmed_outgoing_event<'a, T: Clone + 'a>(
Container::new(
button(
row!(
row!(
badge::spend(),
Column::new().push_maybe(label).push(badge::unconfirmed())
)
.spacing(10)
.align_items(Alignment::Center)
.width(Length::Fill),
row!(badge::spend(), Column::new().push_maybe(label),)
.spacing(10)
.align_items(Alignment::Center)
.width(Length::Fill),
badge::unconfirmed(),
row!(text::p1_regular("-"), amount::amount(amount))
.spacing(5)
.align_items(Alignment::Center),
Expand Down Expand Up @@ -83,11 +81,12 @@ pub fn unconfirmed_incoming_event<'a, T: Clone + 'a>(
row!(
row!(
badge::receive(),
Column::new().push_maybe(label).push(badge::unconfirmed())
Column::new().push_maybe(label)
)
.spacing(10)
.align_items(Alignment::Center)
.width(Length::Fill),
badge::unconfirmed(),
row!(text::p1_regular("+"), amount::amount(amount))
.spacing(5)
.align_items(Alignment::Center),
Expand Down

0 comments on commit 4d3f4fe

Please sign in to comment.