Fix the button positions in the community page when logged in
This commit is contained in:
parent
380e95235d
commit
c2acf90f3f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue