mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix layout in blocked users list.
This commit is contained in:
parent
8f908ab9c0
commit
36bf54b0d1
3 changed files with 10 additions and 6 deletions
|
@ -572,9 +572,6 @@ changePhoneError: FlatLabel(changePhoneLabel) {
|
|||
textFg: boxTextFgError;
|
||||
}
|
||||
|
||||
blockedUsersListSubtitleAddPadding: margins(0px, 1px, 0px, -14px);
|
||||
blockedUsersListIconPadding: margins(0px, 34px, 0px, 5px);
|
||||
|
||||
adminLogFilterUserpicLeft: 15px;
|
||||
adminLogFilterLittleSkip: 16px;
|
||||
adminLogFilterCheckbox: Checkbox(defaultBoxCheckbox) {
|
||||
|
|
|
@ -513,6 +513,12 @@ settingsPremiumUserAbout: FlatLabel(boxDividerLabel) {
|
|||
settingsPremiumLock: icon{{ "emoji/premium_lock", windowActiveTextFg, point(0px, 1px) }};
|
||||
settingsPremiumLockSkip: 3px;
|
||||
|
||||
settingsBlockedListSubtitleAddPadding: margins(0px, 1px, 0px, -4px);
|
||||
settingsBlockedListIconPadding: margins(0px, 34px, 0px, 5px);
|
||||
settingsBlockedList: PeerList(peerListBox) {
|
||||
padding: margins(0px, 0px, 0px, membersMarginBottom);
|
||||
}
|
||||
|
||||
requestPeerRestriction: FlatLabel(defaultFlatLabel) {
|
||||
minWidth: 240px;
|
||||
textFg: membersAboutLimitFg;
|
||||
|
|
|
@ -98,7 +98,7 @@ QPointer<Ui::RpWidget> Blocked::createPinnedToTop(not_null<QWidget*> parent) {
|
|||
AddSubsectionTitle(
|
||||
subtitle->entity(),
|
||||
rpl::duplicate(subtitleText),
|
||||
st::blockedUsersListSubtitleAddPadding);
|
||||
st::settingsBlockedListSubtitleAddPadding);
|
||||
subtitle->toggleOn(
|
||||
rpl::merge(
|
||||
_emptinessChanges.events() | rpl::map(!rpl::mappers::_1),
|
||||
|
@ -134,6 +134,7 @@ void Blocked::setupContent() {
|
|||
};
|
||||
|
||||
auto controller = std::make_unique<BlockedBoxController>(_controller);
|
||||
controller->setStyleOverrides(&st::settingsBlockedList);
|
||||
const auto content = listWrap->entity()->add(
|
||||
object_ptr<PeerListContent>(this, controller.get()));
|
||||
|
||||
|
@ -171,7 +172,7 @@ void Blocked::setupContent() {
|
|||
st::changePhoneIconSize,
|
||||
},
|
||||
},
|
||||
st::blockedUsersListIconPadding);
|
||||
st::settingsBlockedListIconPadding);
|
||||
content->add(std::move(icon.widget));
|
||||
|
||||
_showFinished.events(
|
||||
|
@ -197,7 +198,7 @@ void Blocked::setupContent() {
|
|||
st::changePhoneDescription)),
|
||||
st::changePhoneDescriptionPadding);
|
||||
|
||||
AddSkip(content, st::blockedUsersListIconPadding.top());
|
||||
AddSkip(content, st::settingsBlockedListIconPadding.top());
|
||||
}
|
||||
|
||||
Ui::ResizeFitChild(this, _container);
|
||||
|
|
Loading…
Add table
Reference in a new issue