fix(SendRequestModal): fixing spacing issues

Closes #6941
This commit is contained in:
Alexandra Betouni 2022-09-28 17:24:12 +03:00 committed by Alexandra Betouni
parent fbccb31960
commit e617c8981f
2 changed files with 14 additions and 14 deletions

View File

@ -79,7 +79,7 @@ Item {
pubkey: root.pubkey pubkey: root.pubkey
image: root.icon image: root.icon
interactive: false interactive: false
imageWidth: d.getSize(36, 80, 160) imageWidth: d.getSize(36, 64, 160)
imageHeight: imageWidth imageHeight: imageWidth
showRing: !root.userIsEnsVerified showRing: !root.userIsEnsVerified
} }
@ -109,18 +109,15 @@ Item {
StyledText { StyledText {
Layout.fillWidth: true Layout.fillWidth: true
visible: root.displayNameVisible visible: root.displayNameVisible
text: root.displayName text: root.displayName
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight elide: Text.ElideRight
maximumLineCount: 3 maximumLineCount: 3
wrapMode: Text.Wrap wrapMode: Text.Wrap
font { font {
weight: Font.Medium bold: true
pixelSize: Style.current.primaryTextFontSize pixelSize: 17
} }
} }
@ -171,11 +168,9 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
visible: root.pubkeyVisible visible: root.pubkeyVisible
text: Utils.getElidedCompressedPk(pubkey) text: Utils.getElidedCompressedPk(pubkey)
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
font.pixelSize: Style.current.asideTextFontSize font.pixelSize: 13
color: Style.current.secondaryText color: Style.current.secondaryText
} }

View File

@ -24,7 +24,9 @@ StatusModal {
signal accepted(string message) signal accepted(string message)
padding: Style.current.padding width: 480
height: 548
header.title: qsTr("Send Contact Request to %1").arg(userDisplayName) header.title: qsTr("Send Contact Request to %1").arg(userDisplayName)
QtObject { QtObject {
@ -33,7 +35,7 @@ StatusModal {
readonly property int maxMsgLength: 280 readonly property int maxMsgLength: 280
readonly property int minMsgLength: 1 readonly property int minMsgLength: 1
readonly property int msgHeight: 152 readonly property int msgHeight: 152
readonly property int contentSpacing: 5 readonly property int contentSpacing: Style.current.halfPadding
} }
onAboutToShow: { onAboutToShow: {
@ -43,6 +45,9 @@ StatusModal {
ColumnLayout { ColumnLayout {
id: content id: content
anchors.fill: parent anchors.fill: parent
anchors.topMargin: Style.current.bigPadding
anchors.leftMargin: Style.current.padding
anchors.rightMargin: Style.current.padding
spacing: d.contentSpacing spacing: d.contentSpacing
ProfileHeader { ProfileHeader {
@ -60,20 +65,20 @@ StatusModal {
StatusInput { StatusInput {
id: messageInput id: messageInput
Layout.fillWidth: true
charLimit: d.maxMsgLength charLimit: d.maxMsgLength
placeholderText: root.challengeText placeholderText: root.challengeText
input.multiline: true input.multiline: true
minimumHeight: d.msgHeight minimumHeight: d.msgHeight
maximumHeight: d.msgHeight maximumHeight: d.msgHeight
input.verticalAlignment: TextEdit.AlignTop input.verticalAlignment: TextEdit.AlignTop
validators: StatusMinLengthValidator { validators: StatusMinLengthValidator {
minLength: d.minMsgLength minLength: d.minMsgLength
errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you")) errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you"))
} }
Layout.fillWidth: true
} }
Item { Layout.fillHeight: true }
} }
rightButtons: StatusButton { rightButtons: StatusButton {