2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Improved style of statistic overview.

This commit is contained in:
23rd
2023-10-02 23:35:48 +03:00
committed by John Preston
parent 2b282c8d7d
commit bdfb0ffe04
3 changed files with 81 additions and 60 deletions

View File

@@ -1493,8 +1493,11 @@ void ChartWidget::setZoomedChartData(
Ui::Animations::ShowWidgets({ _zoomedChartWidget.get(), customHeader });
Ui::Animations::HideWidgets({ this });
customHeader->moveToLeft(0, 0);
customHeader->resizeToWidth(width());
{
const auto &headerPadding = st::statisticsChartHeaderPadding;
customHeader->moveToLeft(headerPadding.left(), headerPadding.top());
customHeader->resizeToWidth(width() - rect::m::sum::h(headerPadding));
}
zoomOutButton->moveToLeft(0, 0);
}