From 3c1869a90e1a8a63cf3b80680f8154e5a43b60d2 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 18 Jul 2025 14:48:50 +0000 Subject: [PATCH] qml: ExceptionDialog: put user_text inside Flickable --- .../gui/qml/components/ExceptionDialog.qml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/electrum/gui/qml/components/ExceptionDialog.qml b/electrum/gui/qml/components/ExceptionDialog.qml index 3a60ae22af9..a67b25e0ae9 100644 --- a/electrum/gui/qml/components/ExceptionDialog.qml +++ b/electrum/gui/qml/components/ExceptionDialog.qml @@ -61,12 +61,21 @@ ElDialog Layout.fillWidth: true text: qsTr('Please briefly describe what led to the error (optional):') } - TextArea { - id: user_text - Layout.fillWidth: true + Flickable { + width: parent.width Layout.fillHeight: true - background: Rectangle { - color: Qt.darker(Material.background, 1.25) + contentHeight: user_text.height + interactive: height < contentHeight + clip: true + + TextArea { + id: user_text + width: parent.width + height: Math.max(implicitHeight, 100) + wrapMode: TextInput.WordWrap + background: Rectangle { + color: Qt.darker(Material.background, 1.25) + } } } Label {