fix(chat): remove tenor.com domain from preview
Also use the preview width if available Fixes #13955
This commit is contained in:
parent
c3aa69b8ab
commit
fea157e50e
|
@ -361,7 +361,6 @@ SettingsContentBase {
|
|||
filename = "github"; break;
|
||||
case "medium":
|
||||
filename = "medium"; break;
|
||||
case "tenor gifs":
|
||||
case "tenor gifs subdomain":
|
||||
filename = "tenor"; break;
|
||||
case "giphy gifs":
|
||||
|
|
|
@ -261,7 +261,8 @@ Column {
|
|||
container: root.container
|
||||
source: linkData.thumbnailUrl
|
||||
visible: linkData.thumbnailUrl.length
|
||||
imageWidth: 300
|
||||
readonly property int previewWidth: parseInt(linkData.width)
|
||||
imageWidth: Math.min(300, previewWidth > 0 ? previewWidth : 300)
|
||||
isCurrentUser: root.isCurrentUser
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 846029692c8a2ec5f9adb1b6781498f265c44b75
|
||||
Subproject commit bcdb14bd4890aab8f803cf0b8c1ecd702f4228a4
|
Loading…
Reference in New Issue