From 1c060f40c15d474783d9d3dc49d860e3e07f946d Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 15 Feb 2022 18:29:01 +0300 Subject: [PATCH] Increase minimal main menu footer height. --- Telegram/SourceFiles/window/window.style | 1 + Telegram/SourceFiles/window/window_main_menu.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window.style b/Telegram/SourceFiles/window/window.style index 4563a45e9..dd31a5dcf 100644 --- a/Telegram/SourceFiles/window/window.style +++ b/Telegram/SourceFiles/window/window.style @@ -116,6 +116,7 @@ mainMenuCoverNameTop: 84px; mainMenuCoverStatusLeft: 24px; mainMenuCoverStatusTop: 103px; mainMenuSkip: 6px; +mainMenuFooterHeightMin: 80px; mainMenu: Menu(defaultMenu) { itemFg: windowBoldFg; itemFgOver: windowBoldFgOver; diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index db88375f6..e409b2c24 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -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); }