mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Slightly improved subtext in overview from statistics section.
This commit is contained in:
parent
e6d661f8ee
commit
0a92b1dc68
1 changed files with 4 additions and 2 deletions
|
@ -404,6 +404,9 @@ void FillOverview(
|
|||
- st::statisticsOverviewSubtext.style.font->height
|
||||
+ g.y()
|
||||
+ diffBetweenHeaders);
|
||||
if (container->height() < rect::bottom(sub)) {
|
||||
container->resize(container->width(), rect::bottom(sub));
|
||||
}
|
||||
}, primary->lifetime());
|
||||
};
|
||||
|
||||
|
@ -535,8 +538,7 @@ void FillOverview(
|
|||
}
|
||||
}
|
||||
container->showChildren();
|
||||
container->resize(container->width(), topLeftLabel->height() * 5);
|
||||
container->sizeValue(
|
||||
container->sizeValue() | rpl::distinct_until_changed(
|
||||
) | rpl::start_with_next([=](const QSize &s) {
|
||||
const auto halfWidth = s.width() / 2;
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue