2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixes for minimum sticker width

This commit is contained in:
RadRussianRus
2019-09-27 04:17:01 +03:00
parent a136f35a59
commit 6c3cc4fb27
3 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ using "ui/widgets/widgets.style";
minPhotoSize: 100px;
minVideoSize: 160px;
maxMediaSize: 430px;
maxStickerSize: 128px;
maxStickerSize: 256px;
maxGifSize: 320px;
maxVideoMessageSize: 240px;
maxSignatureSize: 144px;
@@ -20,6 +20,8 @@ maxWallPaperWidth: 160px;
maxWallPaperHeight: 240px;
historyThemeSize: size(272px, 176px);
historyStickerHeight: 128px;
historyMinimalWidth: 380px;
historyScroll: ScrollArea(defaultScrollArea) {

View File

@@ -30,7 +30,7 @@ QSize UnwrappedMedia::countOptimalSize() {
_content->refreshLink();
_contentSize = NonEmptySize(DownscaledSize(
_content->size(),
{ st::maxStickerSize, st::maxStickerSize }));
{ st::maxStickerSize, st::historyStickerHeight }));
auto maxWidth = _contentSize.width();
const auto minimal = st::largeEmojiSize + 2 * st::largeEmojiOutline;
auto minHeight = std::max(_contentSize.height(), minimal);

View File

@@ -65,7 +65,7 @@ QSize Sticker::size() {
} else {
_size = DownscaledSize(
_size,
{ st::maxStickerSize, st::maxStickerSize });
{ st::maxStickerSize, st::historyStickerHeight });
}
return _size;
}