mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix bio cut-off in calls peer info.
This commit is contained in:
@@ -631,7 +631,6 @@ groupCallMenuAbout: FlatLabel(defaultFlatLabel) {
|
||||
textFg: groupCallMemberNotJoinedStatus;
|
||||
palette: groupCallTextPalette;
|
||||
minWidth: 200px;
|
||||
maxHeight: 92px;
|
||||
}
|
||||
callDeviceSelectionLabel: FlatLabel(defaultSubsectionTitle) {
|
||||
textFg: groupCallActiveFg;
|
||||
|
||||
@@ -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<QAction*> AboutItem::action() const {
|
||||
|
||||
Reference in New Issue
Block a user