mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,
|
ImageRoundRadius radius,
|
||||||
bool spoiler) {
|
bool spoiler) {
|
||||||
const auto original = image->original();
|
const auto original = image->original();
|
||||||
if (original.width() * 10 < original.height()
|
if (original.width() * 20 < original.height()
|
||||||
|| original.height() * 10 < original.width()) {
|
|| original.height() * 20 < original.width()) {
|
||||||
return QImage();
|
return QImage();
|
||||||
}
|
}
|
||||||
const auto factor = style::DevicePixelRatio();
|
const auto factor = style::DevicePixelRatio();
|
||||||
|
|
Loading…
Add table
Reference in a new issue