mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-09 05:03:54 +00:00
Fit 8 emoji per row in IV editor column
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user