Slightly improved style of inner box for channel earn history entries.

This commit is contained in:
23rd 2024-04-19 23:23:48 +03:00 committed by John Preston
parent 9caff93c35
commit a86e7f035f
2 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -809,6 +809,9 @@ void InnerWidget::fill() {
const auto detailsBox = [=, amount = entry.amount, peer = _peer](
not_null<Ui::GenericBox*> 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());