From d14c8f40366f8271fd3f4bd30ceedc37757b257c Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 25 Jun 2026 18:10:24 +0400 Subject: [PATCH] Fit 8 emoji per row in IV editor column --- Telegram/SourceFiles/iv/editor/iv_editor_box.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp b/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp index a48444b06c..f08383a7d9 100644 --- a/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp +++ b/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp @@ -1450,7 +1450,16 @@ void WindowHost::Impl::setEmojiColumnInteractionActive(bool active) { } int WindowHost::Impl::emojiColumnWidth() const { - return st::emojiPanWidth; + const auto &pan = st::defaultEmojiPan; + const auto columns = 8; + const auto innerWidth = columns * pan.desiredSize; + return innerWidth + + pan.padding.left() + + pan.padding.right() + - pan.margin.left() + - pan.margin.right() + + st::emojiPanRadius + + st::emojiScroll.width; } int WindowHost::Impl::minimalWindowWidth() const {