mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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
|
- st::statisticsOverviewSubtext.style.font->height
|
||||||
+ g.y()
|
+ g.y()
|
||||||
+ diffBetweenHeaders);
|
+ diffBetweenHeaders);
|
||||||
|
if (container->height() < rect::bottom(sub)) {
|
||||||
|
container->resize(container->width(), rect::bottom(sub));
|
||||||
|
}
|
||||||
}, primary->lifetime());
|
}, primary->lifetime());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -535,8 +538,7 @@ void FillOverview(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
container->showChildren();
|
container->showChildren();
|
||||||
container->resize(container->width(), topLeftLabel->height() * 5);
|
container->sizeValue() | rpl::distinct_until_changed(
|
||||||
container->sizeValue(
|
|
||||||
) | rpl::start_with_next([=](const QSize &s) {
|
) | rpl::start_with_next([=](const QSize &s) {
|
||||||
const auto halfWidth = s.width() / 2;
|
const auto halfWidth = s.width() / 2;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue