diff --git a/Telegram/SourceFiles/calls/calls.style b/Telegram/SourceFiles/calls/calls.style index 2b76011fdc..b15fbd6167 100644 --- a/Telegram/SourceFiles/calls/calls.style +++ b/Telegram/SourceFiles/calls/calls.style @@ -631,7 +631,6 @@ groupCallMenuAbout: FlatLabel(defaultFlatLabel) { textFg: groupCallMemberNotJoinedStatus; palette: groupCallTextPalette; minWidth: 200px; - maxHeight: 92px; } callDeviceSelectionLabel: FlatLabel(defaultSubsectionTitle) { textFg: groupCallActiveFg; diff --git a/Telegram/SourceFiles/calls/group/calls_cover_item.cpp b/Telegram/SourceFiles/calls/group/calls_cover_item.cpp index 4d8ddbb9ab..8f8a44a292 100644 --- a/Telegram/SourceFiles/calls/group/calls_cover_item.cpp +++ b/Telegram/SourceFiles/calls/group/calls_cover_item.cpp @@ -66,13 +66,28 @@ AboutItem::AboutItem( , _dummyAction(new QAction(parent)) { setPointerCursor(false); + _text->setSelectable(true); + + const auto added = st.itemPadding.left() + st.itemPadding.right(); + + sizeValue( + ) | rpl::on_next([=](const QSize &s) { + if (s.width() <= added) { + return; + } + _text->resizeToWidth(s.width() - added); + _text->moveToLeft(st.itemPadding.left(), st.itemPadding.top()); + }, lifetime()); + + _text->heightValue( + ) | rpl::on_next([=] { + resize(width(), contentHeight()); + }, lifetime()); + + _text->resizeToWidth(parent->width() - added); fitToMenuWidth(); enableMouseSelecting(); enableMouseSelecting(_text.get()); - - _text->setSelectable(true); - _text->resizeToWidth(st::groupCallMenuAbout.minWidth); - _text->moveToLeft(st.itemPadding.left(), st.itemPadding.top()); } not_null AboutItem::action() const {