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