chore: object names added for link previews elements (#14869)
This commit is contained in:
parent
92fc9b18f2
commit
dd2d64043b
|
@ -94,6 +94,7 @@ CalloutCard {
|
|||
}
|
||||
StatusBaseText {
|
||||
id: title
|
||||
objectName: "linkPreviewTitle"
|
||||
// One line centered next to the logo
|
||||
// Two or more lines, or no logo, top aligned
|
||||
readonly property bool centerText: lineCount == 1 && height === logo.height && logo.visible
|
||||
|
@ -115,6 +116,7 @@ CalloutCard {
|
|||
visible: root.type === Constants.LinkPreviewType.StatusContact
|
||||
publicKey: root.userData.publicKey
|
||||
oneRow: true
|
||||
objectName: "linkPreviewEmojiHash"
|
||||
}
|
||||
StatusBaseText {
|
||||
id: description
|
||||
|
|
|
@ -185,6 +185,7 @@ CalloutCard {
|
|||
spacing: 0
|
||||
StatusBaseText {
|
||||
id: titleText
|
||||
objectName: "linkPreviewTitleText"
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
font.pixelSize: Style.current.additionalTextSize
|
||||
|
@ -217,6 +218,7 @@ CalloutCard {
|
|||
}
|
||||
StatusBaseText {
|
||||
id: subtitleText
|
||||
objectName: "linkPreviewSubtitleText"
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
font.pixelSize: Style.current.tertiaryTextFontSize
|
||||
|
|
|
@ -39,6 +39,7 @@ CalloutCard {
|
|||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
text: qsTr("Show link previews?")
|
||||
objectName: "titleText"
|
||||
}
|
||||
StatusBaseText {
|
||||
Layout.fillWidth: true
|
||||
|
@ -49,6 +50,7 @@ CalloutCard {
|
|||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
text: qsTr("A preview of your link will be shown here before you send it")
|
||||
objectName: "subtitleText"
|
||||
}
|
||||
}
|
||||
ComboBox {
|
||||
|
@ -98,6 +100,7 @@ CalloutCard {
|
|||
|
||||
StatusFlatRoundButton {
|
||||
id: closeButton
|
||||
objectName: "closeLinkPreviewButton"
|
||||
Layout.preferredHeight: 38
|
||||
Layout.preferredWidth: 38
|
||||
type: StatusFlatRoundButton.Type.Secondary
|
||||
|
|
Loading…
Reference in New Issue