From 13d4a2f8cac98c2d226f6476c7f767c62fafc6d9 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 3 Jan 2026 13:02:47 +0300 Subject: [PATCH] Revert "Increased height of various boxes with participants list." This reverts commit 3d61da74edbec2fad7ef3d2ec5718f8e86138fc5. --- .../boxes/peers/edit_participants_box.cpp | 13 ------------- .../SourceFiles/boxes/peers/edit_participants_box.h | 1 - 2 files changed, 14 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 6f876209f7..b0004bcc86 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -33,12 +33,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/widgets/menu/menu_multiline_action.h" #include "ui/widgets/popup_menu.h" #include "ui/text/text_utilities.h" -#include "ui/rect.h" #include "info/profile/info_profile_values.h" #include "window/window_session_controller.h" #include "history/history.h" #include "styles/style_chat.h" -#include "styles/style_layers.h" #include "styles/style_menu_icons.h" namespace { @@ -1214,17 +1212,6 @@ rpl::producer ParticipantsBoxController::fullCountValue() const { return _fullCountValue.value(); } -rpl::producer ParticipantsBoxController::boxHeightValue() const { - return _fullCountValue.value() | rpl::map([=](int count) { - const auto &st = computeListSt(); - const auto searchHeight = st.item.height; - const auto listHeight = count * st.item.height; - return std::max( - searchHeight + listHeight + rect::m::sum::v(st.padding), - st::boxMaxListHeight); - }); -} - void ParticipantsBoxController::setStoriesShown(bool shown) { _stories = std::make_unique( this, diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.h b/Telegram/SourceFiles/boxes/peers/edit_participants_box.h index 622c2f1be4..6e14120302 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.h +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.h @@ -202,7 +202,6 @@ public: [[nodiscard]] rpl::producer onlineCountValue() const; [[nodiscard]] rpl::producer fullCountValue() const; - [[nodiscard]] rpl::producer boxHeightValue() const override; void setStoriesShown(bool shown);