Skip to content

Commit

Permalink
Align dividers
Browse files Browse the repository at this point in the history
  • Loading branch information
so9010 committed Jul 12, 2024
1 parent ecb5256 commit abbc357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions psst-gui/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,13 @@ fn root_widget() -> impl Widget<AppState> {
.with_default_spacer()
.with_child(user::user_widget())
.center()
.fix_height(100.0)
.fix_height(88.0)
.background(Border::Top.with_color(theme::GREY_500));

let sidebar = Flex::column()
.with_flex_child(playlists, 1.0)
.with_child(controls)
.background(theme::BACKGROUND_DARK)
// Contraint needed to prevent the sidebar from expanding to fill the entire window.
// Should it be wider? It is currently the same size as the queue view.
.fix_width(185.0);

let topbar = Flex::row()
Expand Down
3 changes: 2 additions & 1 deletion psst-gui/src/ui/queued.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ fn queue_header_widget() -> impl Widget<AppState> {
.center(),
1.0,
)
.padding(theme::grid(2.0))
.fix_height(32.0)
.padding(theme::grid(1.0))
.expand_width()
.background(Border::Bottom.with_color(theme::GREY_500))
}
Expand Down

0 comments on commit abbc357

Please sign in to comment.