Skip to content

Commit

Permalink
fix: scroll end padding
Browse files Browse the repository at this point in the history
Adds a small amount of padding at the bottom of the scroll container, for consistency.
  • Loading branch information
git-f0x authored and wash2 committed Aug 1, 2024
1 parent 525a42b commit e0bdd65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e0bdd65

Please sign in to comment.