mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Allow chats list preview for narrow photos.
This commit is contained in:
parent
219671a3bc
commit
1028219276
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ struct AlbumCounts {
|
|||
ImageRoundRadius radius,
|
||||
bool spoiler) {
|
||||
const auto original = image->original();
|
||||
if (original.width() * 10 < original.height()
|
||||
|| original.height() * 10 < original.width()) {
|
||||
if (original.width() * 20 < original.height()
|
||||
|| original.height() * 20 < original.width()) {
|
||||
return QImage();
|
||||
}
|
||||
const auto factor = style::DevicePixelRatio();
|
||||
|
|
Loading…
Add table
Reference in a new issue