Fixed margins of copy buttons in RTMP info.

This commit is contained in:
23rd 2022-03-01 12:01:00 +03:00
parent 789c829bc2
commit 00c4ab197d
2 changed files with 5 additions and 1 deletions

View File

@ -1367,8 +1367,10 @@ groupCallRtmpCopyButton: RoundButton(defaultActiveButton) {
width: -26px;
textTop: 7px;
padding: margins(0px, 12px, 0px, 15px);
}
groupCallRtmpCopyButtonTopSkip: 12px;
groupCallRtmpCopyButtonBottomSkip: 15px;
groupCallRtmpShowButton: IconButton(defaultIconButton) {
width: 32px;
height: 32px;

View File

@ -248,7 +248,9 @@ void StartRtmpProcess::FillRtmpRows(
QGuiApplication::clipboard()->setText(state->url.current());
showToast(tr::lng_group_call_rtmp_url_copied(tr::now));
}));
Settings::AddSkip(container, st::groupCallRtmpCopyButtonTopSkip);
const auto weak = container->add(std::move(wrap), rowPadding);
Settings::AddSkip(container, st::groupCallRtmpCopyButtonBottomSkip);
button->heightValue(
) | rpl::start_with_next([=](int height) {
weak->resize(weak->width(), height);