window: prevent sidebar from covering the content area
Add shrink-end-child: false to the Paned so the content panel cannot be squeezed below its minimum size, and set width-request: 360 on the content ToolbarView so there is always a visible reading area.
This commit is contained in:
parent
2c5217e744
commit
db41a691e6
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ template $FeedTheMonkeyWindow : Adw.ApplicationWindow {
|
|||
focusable: false;
|
||||
shrink-start-child: false;
|
||||
resize-start-child: false;
|
||||
shrink-end-child: false;
|
||||
|
||||
start-child: Adw.ToolbarView sidebar_toolbar {
|
||||
top-bar-style: raised;
|
||||
|
|
@ -107,6 +108,7 @@ template $FeedTheMonkeyWindow : Adw.ApplicationWindow {
|
|||
|
||||
end-child: Adw.ToolbarView {
|
||||
top-bar-style: raised;
|
||||
width-request: 360;
|
||||
|
||||
[top]
|
||||
Adw.HeaderBar {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue