Increase minimal main menu footer height.

This commit is contained in:
John Preston 2022-02-15 18:29:01 +03:00
parent d15af0c5f0
commit 1c060f40c1
2 changed files with 2 additions and 1 deletions

View file

@ -116,6 +116,7 @@ mainMenuCoverNameTop: 84px;
mainMenuCoverStatusLeft: 24px;
mainMenuCoverStatusTop: 103px;
mainMenuSkip: 6px;
mainMenuFooterHeightMin: 80px;
mainMenu: Menu(defaultMenu) {
itemFg: windowBoldFg;
itemFgOver: windowBoldFgOver;

View file

@ -1094,7 +1094,7 @@ void MainMenu::updateInnerControlsGeometry() {
const auto available = height() - st::mainMenuCoverHeight - contentHeight;
const auto footerHeight = std::max(
available,
st::mainMenuTelegramBottom + _telegram->height() + st::mainMenuSkip);
st::mainMenuFooterHeightMin);
if (_footer->height() != footerHeight) {
_footer->resize(_footer->width(), footerHeight);
}