diff --git a/Telegram/SourceFiles/boxes/gift_premium_box.cpp b/Telegram/SourceFiles/boxes/gift_premium_box.cpp index a44fdade58..da4e9371d1 100644 --- a/Telegram/SourceFiles/boxes/gift_premium_box.cpp +++ b/Telegram/SourceFiles/boxes/gift_premium_box.cpp @@ -1796,12 +1796,23 @@ void AddStarGiftTable( Ui::Text::WithEntities))); } if (!entry.description.empty()) { + const auto session = &controller->session(); + const auto makeContext = [=](Fn update) { + return Core::MarkedTextContext{ + .session = session, + .customEmojiRepaint = std::move(update), + }; + }; + auto label = object_ptr( + table, + rpl::single(entry.description), + st::giveawayGiftMessage, + st::defaultPopupMenu, + makeContext); + label->setSelectable(true); table->addRow( nullptr, - object_ptr( - table, - rpl::single(entry.description), - st::giveawayGiftCodeValue), + std::move(label), st::giveawayGiftCodeLabelMargin, st::giveawayGiftCodeValueMargin); } diff --git a/Telegram/SourceFiles/info/channel_statistics/boosts/giveaway/giveaway.style b/Telegram/SourceFiles/info/channel_statistics/boosts/giveaway/giveaway.style index 371edf751e..d3fb04e8de 100644 --- a/Telegram/SourceFiles/info/channel_statistics/boosts/giveaway/giveaway.style +++ b/Telegram/SourceFiles/info/channel_statistics/boosts/giveaway/giveaway.style @@ -97,6 +97,10 @@ giveawayGiftCodeValueMultiline: FlatLabel(giveawayGiftCodeValue) { minWidth: 128px; maxHeight: 100px; } +giveawayGiftMessage: FlatLabel(giveawayGiftCodeValue) { + minWidth: 128px; + maxHeight: 0px; +} giveawayGiftCodeValueMargin: margins(13px, 9px, 13px, 9px); giveawayGiftCodePeerMargin: margins(11px, 6px, 11px, 4px); giveawayGiftCodeUserpic: UserpicButton(defaultUserpicButton) {