diff --git a/qml/components/StickerPreview.qml b/qml/components/StickerPreview.qml index 68e28b0..f1c5335 100644 --- a/qml/components/StickerPreview.qml +++ b/qml/components/StickerPreview.qml @@ -27,6 +27,7 @@ Item { readonly property bool animated: stickerData.is_animated && appSettings.animateStickers readonly property bool stickerVisible: staticStickerLoader.item ? staticStickerLoader.item.visible : animatedStickerLoader.item ? animatedStickerLoader.item.visible : false + property real aspectRatio: stickerData.width / stickerData.height implicitWidth: stickerData.width implicitHeight: stickerData.height @@ -39,8 +40,8 @@ Item { } Item { - width: stickerData.width - height: stickerData.height + width: Math.min( stickerData.width, parent.width ) + height: width * aspectRatio // (centered in image mode, text-like in sticker mode) x: appSettings.showStickersAsImages ? (parent.width - width)/2 : messageListItem.isOwnMessage ? (parent.width - width) : 0 diff --git a/translations/harbour-fernschreiber-de.ts b/translations/harbour-fernschreiber-de.ts index 0ddabe3..84febcc 100644 --- a/translations/harbour-fernschreiber-de.ts +++ b/translations/harbour-fernschreiber-de.ts @@ -1074,6 +1074,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS Fernschreiber ins Öffnen-Mit-Menü von Sailfish OS integrieren + + Animate stickers + Sticker animieren + StickerPicker diff --git a/translations/harbour-fernschreiber-es.ts b/translations/harbour-fernschreiber-es.ts index 52b6271..cd12dd9 100644 --- a/translations/harbour-fernschreiber-es.ts +++ b/translations/harbour-fernschreiber-es.ts @@ -1068,6 +1068,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-fi.ts b/translations/harbour-fernschreiber-fi.ts index 6db1b2a..765bd19 100644 --- a/translations/harbour-fernschreiber-fi.ts +++ b/translations/harbour-fernschreiber-fi.ts @@ -1075,6 +1075,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-hu.ts b/translations/harbour-fernschreiber-hu.ts index 24595d1..b6b568c 100644 --- a/translations/harbour-fernschreiber-hu.ts +++ b/translations/harbour-fernschreiber-hu.ts @@ -1068,6 +1068,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-it.ts b/translations/harbour-fernschreiber-it.ts index 2702d15..b3dae1d 100644 --- a/translations/harbour-fernschreiber-it.ts +++ b/translations/harbour-fernschreiber-it.ts @@ -1074,6 +1074,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-pl.ts b/translations/harbour-fernschreiber-pl.ts index 3461f14..628b174 100644 --- a/translations/harbour-fernschreiber-pl.ts +++ b/translations/harbour-fernschreiber-pl.ts @@ -1080,6 +1080,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-ru.ts b/translations/harbour-fernschreiber-ru.ts index fde9eef..f326e3c 100644 --- a/translations/harbour-fernschreiber-ru.ts +++ b/translations/harbour-fernschreiber-ru.ts @@ -1080,6 +1080,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-sv.ts b/translations/harbour-fernschreiber-sv.ts index 849fbad..582df01 100644 --- a/translations/harbour-fernschreiber-sv.ts +++ b/translations/harbour-fernschreiber-sv.ts @@ -1074,6 +1074,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber-zh_CN.ts b/translations/harbour-fernschreiber-zh_CN.ts index a9c31a9..d2f3047 100644 --- a/translations/harbour-fernschreiber-zh_CN.ts +++ b/translations/harbour-fernschreiber-zh_CN.ts @@ -1068,6 +1068,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker diff --git a/translations/harbour-fernschreiber.ts b/translations/harbour-fernschreiber.ts index 3b529ef..7dbc2ed 100644 --- a/translations/harbour-fernschreiber.ts +++ b/translations/harbour-fernschreiber.ts @@ -1068,6 +1068,10 @@ Integrate Fernschreiber into open-with menu of Sailfish OS + + Animate stickers + + StickerPicker