diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/channel_earn.style b/Telegram/SourceFiles/info/channel_statistics/earn/channel_earn.style index 01b72005a..6c2304141 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/channel_earn.style +++ b/Telegram/SourceFiles/info/channel_statistics/earn/channel_earn.style @@ -61,6 +61,12 @@ channelEarnHistoryMinorLabel: FlatLabel(channelEarnOverviewMinorLabel) { font: font(12px semibold); } } +channelEarnHistoryDescriptionLabel: FlatLabel(channelEarnHistoryMajorLabel) { + // boxWidth - boxRowPadding = 320 - 24 * 2 + minWidth: 272px; + maxHeight: 0px; + align: align(center); +} channelEarnHistoryMinorLabelSkip: 2px; channelEarnHistoryOuter: margins(0px, 6px, 0px, 6px); channelEarnHistoryTwoSkip: 5px; diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp index ad1155b89..d3af5f14d 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp @@ -809,6 +809,9 @@ void InnerWidget::fill() { const auto detailsBox = [=, amount = entry.amount, peer = _peer]( not_null box) { + box->addTopButton( + st::boxTitleClose, + [=] { box->closeBox(); }); Ui::AddSkip(box->verticalLayout()); Ui::AddSkip(box->verticalLayout()); const auto labels = box->addRow( @@ -860,7 +863,7 @@ void InnerWidget::fill() { isIn ? tr::lng_channel_earn_history_in_about() : tr::lng_channel_earn_history_out(), - st::channelEarnHistoryMajorLabel))); + st::channelEarnHistoryDescriptionLabel))); Ui::AddSkip(box->verticalLayout()); if (isIn) { Ui::AddSkip(box->verticalLayout());