Fix horizontal padding of posts in home page

This commit is contained in:
Bnyro 2023-07-06 17:43:29 +02:00
parent 29e661ec5e
commit 2f8b8ecf17
1 changed files with 2 additions and 3 deletions

View File

@ -30,11 +30,11 @@ impl SimpleComponent for PostsPage {
gtk::Box { gtk::Box {
set_orientation: gtk::Orientation::Vertical, set_orientation: gtk::Orientation::Vertical,
set_margin_all: 10,
gtk::Box { gtk::Box {
set_orientation: gtk::Orientation::Horizontal, set_orientation: gtk::Orientation::Horizontal,
set_spacing: 10, set_spacing: 10,
set_margin_all: 10,
gtk::ToggleButton { gtk::ToggleButton {
set_label: "All", set_label: "All",
@ -63,8 +63,7 @@ impl SimpleComponent for PostsPage {
gtk::Button { gtk::Button {
set_label: "More", set_label: "More",
connect_clicked => PostsPageInput::FetchPosts(model.posts_type, false), connect_clicked => PostsPageInput::FetchPosts(model.posts_type, false),
set_margin_top: 10, set_margin_all: 10,
set_margin_bottom: 10,
} }
} }
} }