Slightly improved subtext in overview from statistics section.

This commit is contained in:
23rd 2024-10-24 18:15:33 +03:00
parent e6d661f8ee
commit 0a92b1dc68

View file

@ -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;
{ {