Adjust padding for nav bar and content

This commit is contained in:
Jeremy Soller 2022-12-21 08:22:52 -07:00
parent c46207a993
commit dd13b8300c
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 6 additions and 3 deletions

View file

@ -463,7 +463,7 @@ impl Application for Window {
);
container(row(widgets))
.padding([16, 16])
.padding([0, 8, 8, 8])
.width(Length::Fill)
.height(Length::Fill)
.into()

View file

@ -65,7 +65,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
let mut widget = widget::row(packed)
.height(Length::Units(50))
.padding(10)
.padding(8)
.apply(widget::container)
.center_y()
.apply(widget::mouse_listener);

View file

@ -13,5 +13,8 @@ use iced::widget::{column, Column};
/// A column with a predefined style for creating a settings panel
#[must_use]
pub fn view_column<Message: 'static>(children: Vec<Element<Message>>) -> Column<Message, Renderer> {
column(children).spacing(24).padding(24).max_width(600)
column(children)
.spacing(24)
.padding([0, 24])
.max_width(678)
}