summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--popups/launcher/components/DuckDuckGo.qml37
1 files changed, 23 insertions, 14 deletions
diff --git a/popups/launcher/components/DuckDuckGo.qml b/popups/launcher/components/DuckDuckGo.qml
index 0514b66..9c36c79 100644
--- a/popups/launcher/components/DuckDuckGo.qml
+++ b/popups/launcher/components/DuckDuckGo.qml
@@ -1,5 +1,6 @@
import Quickshell
import QtQuick
+import QtQuick.Controls
import QtQuick.Layouts
import qs.components
@@ -123,23 +124,31 @@ IComponent {
}
}
- ITextEdit {
- animate: true
-
+ ScrollView {
+ id: scroll
Layout.fillWidth: true
+ contentWidth: availableWidth
Layout.fillHeight: true
+ clip: true
+
+ ITextEdit {
+ id: text
+ height: scroll.contentHeight
+ animate: true
+ width: scroll.contentWidth
+
+ readOnly: true
+ renderType: Text.CurveRendering
+ visible: valid && DuckDuckGo.title
+ text: DuckDuckGo.title ? DuckDuckGo.description_html : ''
+ font {
+ pixelSize: Launcher.widgetFontSize
+ }
- readOnly: true
- renderType: Text.CurveRendering
- visible: valid && DuckDuckGo.title
- text: DuckDuckGo.title ? DuckDuckGo.description_html : ''
- font {
- pixelSize: Launcher.widgetFontSize
- }
-
- TapHandler {
- gesturePolicy: TapHandler.DragThreshold
- onTapped: expand = !expand
+ TapHandler {
+ gesturePolicy: TapHandler.DragThreshold
+ onTapped: expand = !expand
+ }
}
}
}