From e0bdd651ca69aa7000327b9c01bdeb6095364c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:59:00 +0200 Subject: [PATCH] fix: scroll end padding Adds a small amount of padding at the bottom of the scroll container, for consistency. --- src/app.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 67f7426..e2cdaa1 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1154,7 +1154,12 @@ impl cosmic::Application for CosmicAppLibrary { column(app_grid_list) .width(Length::Fill) .spacing(spacing.space_xxs) - .padding([spacing.space_none, spacing.space_xxl]), + .padding([ + spacing.space_none, + spacing.space_xxl, + spacing.space_xxs, + spacing.space_xxl, + ]), ) .on_scroll(|viewport| Message::ScrollYOffset(viewport.absolute_offset().y)) .id(Id::new( @@ -1290,7 +1295,7 @@ impl cosmic::Application for CosmicAppLibrary { let window = container(content) .width(Length::Fill) .height(Length::Fill) - .max_height(684) + .max_height(685) .max_width(1200.0) .style(theme::Container::Custom(Box::new(|theme| { container::Appearance {