✨ feat(control-center/page): add natural height scrollable for Page content to avoid issues on smaller screens
This commit is contained in:
@@ -88,7 +88,11 @@ class Page extends Widget.Box {
|
|||||||
} as Widget.LabelProps),
|
} as Widget.LabelProps),
|
||||||
]
|
]
|
||||||
} as Widget.BoxProps),
|
} as Widget.BoxProps),
|
||||||
new Widget.Box({
|
new Widget.Scrollable({
|
||||||
|
hscroll: Gtk.PolicyType.NEVER,
|
||||||
|
vscroll: Gtk.PolicyType.AUTOMATIC,
|
||||||
|
propagateNaturalHeight: true,
|
||||||
|
child: new Widget.Box({
|
||||||
className: "content",
|
className: "content",
|
||||||
spacing: props.spacing ?? 4,
|
spacing: props.spacing ?? 4,
|
||||||
orientation: props.orientation ?? Gtk.Orientation.VERTICAL,
|
orientation: props.orientation ?? Gtk.Orientation.VERTICAL,
|
||||||
@@ -97,6 +101,7 @@ class Page extends Widget.Box {
|
|||||||
child: props.child,
|
child: props.child,
|
||||||
children: props.children
|
children: props.children
|
||||||
} as Widget.BoxProps),
|
} as Widget.BoxProps),
|
||||||
|
} as Widget.ScrollableProps),
|
||||||
Separator({
|
Separator({
|
||||||
alpha: .2,
|
alpha: .2,
|
||||||
spacing: 6,
|
spacing: 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user