mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-19 01:14:43 -05:00
chore: update PageSection api to handle better hide_visible_container prop (#970)
* feat/move-cache-info-to-dedicated-block * rollback the cache block
This commit is contained in:
@@ -3,3 +3,11 @@
|
||||
.page-section-children-box {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.page-section-no-container .page-section-children-box {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-section-no-container .boxed-list row {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@@ -101,6 +101,7 @@ mod imp {
|
||||
set_orientation: gtk::Orientation::Vertical,
|
||||
add_css_class: "page-section-content" ,
|
||||
set_class_active: (css::CARD, !self.hide_visible_container.get()),
|
||||
set_class_active: ("page-section-no-container", self.hide_visible_container.get()),
|
||||
|
||||
#[local_ref]
|
||||
append = children_box {
|
||||
@@ -123,9 +124,10 @@ mod imp {
|
||||
.build();
|
||||
|
||||
obj.connect_notify_local(Some("hide-visible-container"), |obj, _| {
|
||||
obj.imp()
|
||||
.content_box
|
||||
.set_class_active(css::CARD, !obj.hide_visible_container());
|
||||
let hidden = obj.hide_visible_container();
|
||||
let content_box = &obj.imp().content_box;
|
||||
content_box.set_class_active(css::CARD, !hidden);
|
||||
content_box.set_class_active("page-section-no-container", hidden);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
.clocks-frame .page-section-children-box {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.clocks-frame-group {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user