mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 16:56:59 +01:00
fix(gui): keep the details pane under the toggle's control
Pin the split view's sidebar so the wide breakpoint no longer opens the pane by itself, and show a "No item selected" state instead of closing it when a navigation clears the entry. The pane follows the header toggle alone, which also tracks an overlay closed by a click outside.
This commit is contained in:
1 parent
f6136ce344
commit
2dde69525e
4 files changed
+67
-28
No files matched your search
@@ -369,6 +369,9 @@ pub(crate) fn build_browser_page() -> (gtk4::Widget, BrowserWidgets) {
|
||||
.sidebar_position(gtk4::PackType::End)
|
||||
.collapsed(true)
|
||||
.show_sidebar(false)
|
||||
// Unpinned, uncollapsing at the wide breakpoint would show the pane by
|
||||
// itself; the header toggle alone decides.
|
||||
.pin_sidebar(true)
|
||||
.max_sidebar_width(300.0)
|
||||
.content(&content)
|
||||
.sidebar(&details_pane)
|
||||
@@ -568,7 +571,7 @@ pub(crate) fn browser_status(ui: &Rc<Ui>, icon: &str, title: &str, description:
|
||||
// status (loading, offline, error) turns them back off.
|
||||
ui.browser.empty_actions.set_visible(false);
|
||||
ui.browser.content.set_visible_child_name("status");
|
||||
hide_details(ui);
|
||||
clear_details(ui);
|
||||
}
|
||||
|
||||
/// The selection model shared by the grid and the list.
|
||||
|
||||
Reference in new issue
Block a user