diff --git a/electrum/gui/qml/components/NostrConfigDialog.qml b/electrum/gui/qml/components/NostrConfigDialog.qml index 0eb6cfd86fe..384555f5b0d 100644 --- a/electrum/gui/qml/components/NostrConfigDialog.qml +++ b/electrum/gui/qml/components/NostrConfigDialog.qml @@ -74,7 +74,6 @@ 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 e161979d2b0..1d69e04f535 100644 --- a/electrum/gui/qml/components/controls/ElTextArea.qml +++ b/electrum/gui/qml/components/controls/ElTextArea.qml @@ -17,7 +17,7 @@ Flickable { property alias background: rootpane.background property alias font: edit.font property alias inputMethodHints: edit.inputMethodHints - property alias placeholderText: edit.placeholderText + property string placeholderText property alias color: edit.color property alias topPadding: rootpane.topPadding readonly property bool anyActiveFocus: activeFocus || edit.activeFocus @@ -49,11 +49,13 @@ Flickable { width: root.width height: Math.max(root.height, edit.height + topPadding + bottomPadding) padding: constants.paddingXSmall + topPadding: constants.paddingLarge TextArea { id: edit width: parent.width focus: true wrapMode: TextEdit.Wrap + placeholderText: edit.text.length ? "" : root.placeholderText onCursorRectangleChanged: root.ensureVisible(cursorRectangle) onTextChanged: root.textChanged() background: Rectangle {