From 2ed0b3da3aa8cffec0fcf4c6125e70708fe11420 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sat, 25 Apr 2026 10:44:31 +0200 Subject: [PATCH] hoverpanel: add max height with flickable scrolling when content overflows --- shell/modules/HoverPanel.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/shell/modules/HoverPanel.qml b/shell/modules/HoverPanel.qml index ab17583..5f7adc5 100644 --- a/shell/modules/HoverPanel.qml +++ b/shell/modules/HoverPanel.qml @@ -373,9 +373,20 @@ PanelWindow { } } - Column { - id: panelContent + Flickable { + id: _flickable width: parent.width + height: Math.min(panelContent.height, _maxContentHeight) + contentHeight: panelContent.height + clip: contentHeight > height + boundsBehavior: Flickable.StopAtBounds + + readonly property real _maxContentHeight: (root.screen?.height ?? 1080) * 0.6 - (_headerItem.visible ? _headerItem.height : 0) + + Column { + id: panelContent + width: parent.width + } } } }