repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

popouts: cap long lists in scroll panes so sections below stay reachable

0304522e8ec67b0a7d7300e2bbddbcbffbb04b8f

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

A long WiFi scan grew the network list unbounded and pushed the Bluetooth
section off the bottom of the connectivity popup. Wrap the growable device
lists in height-capped Flickables (clip + interactive only when overflowing,
StopAtBounds) so they scroll internally and the sections beneath them stay
on-screen:

- network: WiFi network list (cap 232) and Bluetooth device list (cap 184)
- audio: output (sinks) and input (sources) lists (cap 204 each)

Short lists still render fully (Math.min(content, cap)); only long lists
scroll. Power session/device grids and the tray Flow are already bounded, so
they are left as-is.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Changed files (1)

quickshell/nuguland/PopoutHost.qml

Modified
2869 - Repeater {
2870 - model: root.networkState.networks || []
2869 + // Cap the network list so a long scan scrolls internally instead
2870 + // of pushing the Bluetooth section off the bottom of the popup.
2871 + Flickable {
2872 + width: parent.width
2873 + height: Math.min(wifiListCol.height, 232)
2874 + contentHeight: wifiListCol.height
2875 + clip: true
2876 + interactive: contentHeight > height
2877 + boundsBehavior: Flickable.StopAtBounds
2872 - delegate: Column {
2879 + Column {
2880 + id: wifiListCol
2882 + width: parent.width
2883 + spacing: 6
2885 + Repeater {
2886 + model: root.networkState.networks || []
2888 + delegate: Column {
2873 2889 id: wifiRow
2875 2891 required property var modelData
3080 3100 NuguText {
3158 - Repeater {
3159 - model: root.bluetoothState.devices || []
3178 + Flickable {
3179 + width: parent.width
3180 + height: Math.min(btListCol.height, 184)
3181 + contentHeight: btListCol.height
3182 + clip: true
3183 + interactive: contentHeight > height
3184 + boundsBehavior: Flickable.StopAtBounds
3161 - delegate: Rectangle {
3186 + Column {
3187 + id: btListCol
3189 + width: parent.width
3190 + spacing: 6
3192 + Repeater {
3193 + model: root.bluetoothState.devices || []
3195 + delegate: Rectangle {
3162 3196 id: deviceRow
3164 3198 required property var modelData
3754 3792 text: "output"
3757 - Repeater {
3758 - model: root.sinks
3795 + Flickable {
3796 + width: parent.width
3797 + height: Math.min(sinkListCol.height, 204)
3798 + contentHeight: sinkListCol.height
3799 + clip: true
3800 + interactive: contentHeight > height
3801 + boundsBehavior: Flickable.StopAtBounds
3760 - delegate: Rectangle {
3803 + Column {
3804 + id: sinkListCol
3806 + width: parent.width
3807 + spacing: 6
3809 + Repeater {
3810 + model: root.sinks
3812 + delegate: Rectangle {
3761 3813 id: sinkRow
3763 3815 required property var modelData
3886 3942 text: "input"
3889 - Repeater {
3890 - model: root.sources
3945 + Flickable {
3946 + width: parent.width
3947 + height: Math.min(sourceListCol.height, 204)
3948 + contentHeight: sourceListCol.height
3949 + clip: true
3950 + interactive: contentHeight > height
3951 + boundsBehavior: Flickable.StopAtBounds
3892 - delegate: Rectangle {
3953 + Column {
3954 + id: sourceListCol
3956 + width: parent.width
3957 + spacing: 6
3959 + Repeater {
3960 + model: root.sources
3962 + delegate: Rectangle {
3893 3963 id: sourceRow
3895 3965 required property var modelData