mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use always 1:1 ratio in limits boxes.
Otherwise "Free" label doesn't fit in 2:20 shareable folders.
This commit is contained in:
parent
8a6a749296
commit
730c968b1e
1 changed files with 5 additions and 3 deletions
|
@ -418,7 +418,9 @@ void SimpleLimitBox(
|
||||||
BoxShowFinishes(box),
|
BoxShowFinishes(box),
|
||||||
0,
|
0,
|
||||||
descriptor.current,
|
descriptor.current,
|
||||||
descriptor.premiumLimit,
|
(descriptor.complexRatio
|
||||||
|
? descriptor.premiumLimit
|
||||||
|
: 2 * descriptor.current),
|
||||||
premiumPossible,
|
premiumPossible,
|
||||||
descriptor.phrase,
|
descriptor.phrase,
|
||||||
descriptor.icon);
|
descriptor.icon);
|
||||||
|
@ -769,7 +771,7 @@ void FilterLinksLimitBox(
|
||||||
premiumLimit,
|
premiumLimit,
|
||||||
&st::premiumIconChats,
|
&st::premiumIconChats,
|
||||||
std::nullopt,
|
std::nullopt,
|
||||||
true });
|
/*true */}); // Don't use real ratio, "Free" doesn't fit.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -856,7 +858,7 @@ void ShareableFiltersLimitBox(
|
||||||
premiumLimit,
|
premiumLimit,
|
||||||
&st::premiumIconFolders,
|
&st::premiumIconFolders,
|
||||||
std::nullopt,
|
std::nullopt,
|
||||||
true });
|
/*true*/ }); // Don't use real ratio, "Free" doesn't fit.
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilterPinsLimitBox(
|
void FilterPinsLimitBox(
|
||||||
|
|
Loading…
Add table
Reference in a new issue