Skip to content

Commit

Permalink
Lift size by one to encounter scroll bar hight
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Oldham committed Sep 23, 2024
1 parent 63fb9e0 commit 7d5c5c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion psst-gui/src/ui/album.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn album_widget(horizontal: bool) -> impl Widget<WithCtx<Arc<Album>>> {
.with_child(album_date)
.align_horizontal(UnitPoint::CENTER)
.align_vertical(UnitPoint::TOP)
.fix_size(theme::grid(16.0), theme::grid(7.0)),
.fix_size(theme::grid(16.0), theme::grid(8.0)),
)
.align_left()
} else {
Expand Down
2 changes: 1 addition & 1 deletion psst-gui/src/ui/artist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn artist_widget(horizontal: bool) -> impl Widget<Artist> {
.with_font(theme::UI_FONT_MEDIUM)
.align_horizontal(UnitPoint::CENTER)
.align_vertical(UnitPoint::TOP)
.fix_size(theme::grid(16.0), theme::grid(7.0))
.fix_size(theme::grid(16.0), theme::grid(8.0))
.lens(Artist::name),
)
} else {
Expand Down
2 changes: 1 addition & 1 deletion psst-gui/src/ui/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ pub fn playlist_widget(horizontal: bool) -> impl Widget<WithCtx<Playlist>> {
.with_child(playlist_description)
.align_horizontal(UnitPoint::CENTER)
.align_vertical(UnitPoint::TOP)
.fix_size(theme::grid(16.0), theme::grid(7.0)),
.fix_size(theme::grid(16.0), theme::grid(8.0)),
)
.padding(theme::grid(1.0))
} else {
Expand Down
2 changes: 1 addition & 1 deletion psst-gui/src/ui/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn show_widget(horizontal: bool) -> impl Widget<WithCtx<Arc<Show>>> {
.with_child(show_publisher)
.align_horizontal(UnitPoint::CENTER)
.align_vertical(UnitPoint::TOP)
.fix_size(theme::grid(16.0), theme::grid(7.0)),
.fix_size(theme::grid(16.0), theme::grid(8.0)),
)
.padding(theme::grid(1.0))
.lens(Ctx::data())
Expand Down

0 comments on commit 7d5c5c7

Please sign in to comment.