From 24d93420fbc10d75f3014793b101f7160cc791e2 Mon Sep 17 00:00:00 2001 From: f321x Date: Tue, 14 Apr 2026 08:34:18 +0200 Subject: [PATCH] qml: add top padding to nostr relay url list The first relay url was close to the top of the ElTextArea and looked a bit sliced. Adding some padding makes it look better. --- electrum/gui/qml/components/NostrConfigDialog.qml | 1 + electrum/gui/qml/components/controls/ElTextArea.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/electrum/gui/qml/components/NostrConfigDialog.qml b/electrum/gui/qml/components/NostrConfigDialog.qml index 767b3c42f..f53646826 100644 --- a/electrum/gui/qml/components/NostrConfigDialog.qml +++ b/electrum/gui/qml/components/NostrConfigDialog.qml @@ -70,6 +70,7 @@ ElDialog { Layout.fillWidth: true Layout.fillHeight: true font.family: FixedFont + topPadding: constants.paddingLarge wrapMode: TextEdit.WrapAnywhere onTextChanged: valid = verify(text) inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase diff --git a/electrum/gui/qml/components/controls/ElTextArea.qml b/electrum/gui/qml/components/controls/ElTextArea.qml index eeb528abb..e161979d2 100644 --- a/electrum/gui/qml/components/controls/ElTextArea.qml +++ b/electrum/gui/qml/components/controls/ElTextArea.qml @@ -19,6 +19,7 @@ Flickable { property alias inputMethodHints: edit.inputMethodHints property alias placeholderText: edit.placeholderText property alias color: edit.color + property alias topPadding: rootpane.topPadding readonly property bool anyActiveFocus: activeFocus || edit.activeFocus contentWidth: rootpane.width