mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 20:03:12 +00:00
Shrink pending request rows and always show members pill
This commit is contained in:
@@ -1090,7 +1090,7 @@ requestsRejectButton: RoundButton(defaultBoxButton) {
|
||||
}
|
||||
requestButtonsSkip: 9px;
|
||||
communityRequestsBoxItem: PeerListItem(peerListBoxItem) {
|
||||
height: 112px;
|
||||
height: 89px;
|
||||
button: OutlineButton(defaultPeerListButton) {
|
||||
textBg: contactsBg;
|
||||
textBgOver: contactsBg;
|
||||
|
||||
@@ -395,15 +395,15 @@ Row::Row(
|
||||
Ui::NameTextOptions());
|
||||
|
||||
const auto channel = request.peer->asChannel();
|
||||
if (channel && channel->membersCountKnown()) {
|
||||
const auto count = channel->membersCount();
|
||||
auto members = Ui::Text::IconEmoji(&st::requestMembersIcon)
|
||||
.append(Lang::FormatCountToShort(count).string);
|
||||
_members.setMarkedText(
|
||||
st::requestMembersStyle,
|
||||
members,
|
||||
Ui::NameTextOptions());
|
||||
}
|
||||
const auto count = (channel && channel->membersCountKnown())
|
||||
? channel->membersCount()
|
||||
: 0;
|
||||
auto members = Ui::Text::IconEmoji(&st::requestMembersIcon)
|
||||
.append(Lang::FormatCountToShort(count).string);
|
||||
_members.setMarkedText(
|
||||
st::requestMembersStyle,
|
||||
members,
|
||||
Ui::NameTextOptions());
|
||||
|
||||
_hiddenChat = !request.visible;
|
||||
if (!request.visible) {
|
||||
|
||||
Reference in New Issue
Block a user