diff --git a/ui/imports/shared/controls/chat/LinkPreviewCard.qml b/ui/imports/shared/controls/chat/LinkPreviewCard.qml index 98234371a9..840baf772e 100644 --- a/ui/imports/shared/controls/chat/LinkPreviewCard.qml +++ b/ui/imports/shared/controls/chat/LinkPreviewCard.qml @@ -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 diff --git a/ui/imports/shared/controls/chat/LinkPreviewMiniCard.qml b/ui/imports/shared/controls/chat/LinkPreviewMiniCard.qml index 7a4ba54183..cdb0b05464 100644 --- a/ui/imports/shared/controls/chat/LinkPreviewMiniCard.qml +++ b/ui/imports/shared/controls/chat/LinkPreviewMiniCard.qml @@ -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 diff --git a/ui/imports/shared/controls/chat/LinkPreviewSettingsCard.qml b/ui/imports/shared/controls/chat/LinkPreviewSettingsCard.qml index 23f1781a35..db828816eb 100644 --- a/ui/imports/shared/controls/chat/LinkPreviewSettingsCard.qml +++ b/ui/imports/shared/controls/chat/LinkPreviewSettingsCard.qml @@ -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