Make nicer footer in starref boxes.

This commit is contained in:
John Preston 2024-12-02 12:33:01 +04:00
parent d8892c4eb4
commit 4cafb3f966
2 changed files with 2 additions and 1 deletions

View file

@ -296,6 +296,7 @@ void AddFullWidthButtonFooter(
button->parentWidget(),
std::move(text),
st::starrefJoinFooter);
footer->setTryMakeSimilarLines(true);
button->geometryValue() | rpl::start_with_next([=](QRect geometry) {
footer->resizeToWidth(geometry.width());
const auto &st = box->getDelegate()->style();

View file

@ -436,7 +436,7 @@ starrefJoinUserpicsPadding: margins(0px, 32px, 0px, 10px);
starrefJoinTitlePadding: margins(0px, 0px, 0px, 12px);
starrefCenteredText: FlatLabel(defaultFlatLabel) {
align: align(top);
minWidth: 240px;
minWidth: 40px;
}
starrefJoinFooter: FlatLabel(starrefCenteredText) {
textFg: windowSubTextFg;