Fix the button positions in the community page when logged in

This commit is contained in:
Bnyro 2023-06-28 09:07:34 +02:00
parent 380e95235d
commit c2acf90f3f
1 changed files with 6 additions and 2 deletions

View File

@ -72,7 +72,6 @@ impl SimpleComponent for CommunityPage {
gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
set_halign: gtk::Align::Center,
set_margin_bottom: 10,
gtk::Label {
#[watch]
@ -89,6 +88,9 @@ impl SimpleComponent for CommunityPage {
if settings::get_current_account().jwt.is_some() {
gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
set_halign: gtk::Align::Center,
set_margin_top: 10,
match model.info.subscribed {
SubscribedType::Subscribed => {
gtk::Button {
@ -118,7 +120,9 @@ impl SimpleComponent for CommunityPage {
gtk::Box {}
},
gtk::Separator {},
gtk::Separator {
set_margin_top: 10,
},
#[local_ref]
posts -> gtk::Box {