From 2f8b8ecf17ca27a81573cd8dcd33db2eacff08ef Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 6 Jul 2023 17:43:29 +0200 Subject: [PATCH] Fix horizontal padding of posts in home page --- src/components/posts_page.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/posts_page.rs b/src/components/posts_page.rs index 137bd45..cd850d6 100644 --- a/src/components/posts_page.rs +++ b/src/components/posts_page.rs @@ -30,11 +30,11 @@ impl SimpleComponent for PostsPage { gtk::Box { set_orientation: gtk::Orientation::Vertical, - set_margin_all: 10, gtk::Box { set_orientation: gtk::Orientation::Horizontal, set_spacing: 10, + set_margin_all: 10, gtk::ToggleButton { set_label: "All", @@ -63,8 +63,7 @@ impl SimpleComponent for PostsPage { gtk::Button { set_label: "More", connect_clicked => PostsPageInput::FetchPosts(model.posts_type, false), - set_margin_top: 10, - set_margin_bottom: 10, + set_margin_all: 10, } } }