mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
fix(StatusQ): Allow two lines text content in StatusToastMessage
This commit is contained in:
parent
44cf2b6faa
commit
c7aa1cf9e8
@ -19,7 +19,8 @@ Item {
|
||||
{"title":"Verification Request Sent", "subTitle":"", "icon":"checkmark-circle", "loading":false, "type":1,"url":"", "duration":4000},
|
||||
{"title":"Collectible is being minted...", "subTitle":"View on Etherscan", "icon":"", "loading":true, "type":0,"url":"http://google.com", "duration":0},
|
||||
{"title":"Contact request sent", "subTitle":"", "icon":"checkmark-circle", "loading":false, "type":1,"url":"", "duration":4000},
|
||||
{"title":"Test User", "subTitle":"Hello message...", "icon":"", "loading":false, "type":0,"url":"", "duration":4000}
|
||||
{"title":"Test User", "subTitle":"Hello message...", "icon":"", "loading":false, "type":0,"url":"", "duration":4000},
|
||||
{"title":"This device is no longer the control node for the Socks Community", "subTitle":"", "icon":"info", "loading":false, "type":0,"url":"", "duration":0}
|
||||
]
|
||||
delegate: StatusToastMessage {
|
||||
primaryText: modelData.title
|
||||
|
@ -38,7 +38,7 @@ import StatusQ.Core.Theme 0.1
|
||||
Control {
|
||||
id: root
|
||||
width: 343
|
||||
height: !!secondaryText ? 68 : 48
|
||||
height: !!secondaryText || title.lineCount > 1 ? 68 : 48
|
||||
anchors.right: parent.right
|
||||
|
||||
/*!
|
||||
@ -261,26 +261,32 @@ Control {
|
||||
}
|
||||
}
|
||||
}
|
||||
Column {
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.fillHeight: true
|
||||
StatusBaseText {
|
||||
width: parent.width
|
||||
id: title
|
||||
Layout.fillWidth: true
|
||||
font.pixelSize: 13
|
||||
color: Theme.palette.directColor1
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.Wrap
|
||||
text: root.primaryText
|
||||
maximumLineCount: 2
|
||||
}
|
||||
StatusBaseText {
|
||||
width: parent.width
|
||||
Layout.fillWidth: true
|
||||
visible: (!root.linkUrl && !!root.secondaryText)
|
||||
height: visible ? contentHeight : 0
|
||||
font.pixelSize: 13
|
||||
color: Theme.palette.baseColor1
|
||||
text: root.secondaryText
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.Wrap
|
||||
maximumLineCount: 2
|
||||
}
|
||||
StatusSelectableText {
|
||||
Layout.fillWidth: true
|
||||
visible: (!!root.linkUrl)
|
||||
height: visible ? implicitHeight : 0
|
||||
font.pixelSize: 13
|
||||
|
Loading…
x
Reference in New Issue
Block a user