fix(appearance): center-align color picker in context drawer

This commit is contained in:
Michael Aaron Murphy 2024-03-08 15:36:09 +01:00
parent 71cfd2d2f0
commit 290932e77e
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -295,14 +295,19 @@ impl Page {
.push(
model(self)
.builder(on_update)
.width(Length::Fixed(248.0))
.height(Length::Fixed(158.0))
.reset_label(reset)
.height(Length::Fixed(158.0))
.build(
fl!("recent-colors"),
fl!("copy-to-clipboard"),
fl!("copied-to-clipboard"),
),
)
.apply(container)
.width(Length::Fixed(248.0))
.align_x(alignment::Horizontal::Center)
.apply(container)
.width(Length::Fill)
.align_x(alignment::Horizontal::Center)
)
.padding(self.theme_builder.spacing.space_l)
.align_items(cosmic::iced_core::Alignment::Center)