Chat: Fix padding (#4909)

This commit is contained in:
zubiden 2024-08-29 15:52:52 +02:00 committed by Alexander Zinchuk
parent d51fc2a3a2
commit 1dfcbf1009
3 changed files with 11 additions and 3 deletions

View File

@ -85,6 +85,10 @@
}
}
.RecentContacts .search-section {
padding-left: 0.25rem;
}
.WebLink {
display: flex;
}
@ -123,6 +127,10 @@
}
.ListItem.search-result {
.ListItem-button {
padding: 0.375rem;
}
.ChatInfo {
// Fix for overflow hidden and stories indicator
padding: 0.0625rem;
@ -185,7 +193,7 @@
}
.search-section {
padding: 0 0.125rem 0 1rem;
padding: 0 0.125rem 0 0.75rem;
.section-heading {
color: var(--color-text-secondary);

View File

@ -224,7 +224,7 @@
}
.ListItem-button {
padding: 0.375rem;
padding: 0.5625rem;
}
&.contact-list-item {

View File

@ -382,10 +382,10 @@ function reduceUsers<T extends GlobalState>(global: T): GlobalState['users'] {
...visibleUserIds || [],
...attachBotIds,
...global.topPeers.userIds || [],
...global.recentlyFoundChatIds?.filter(isUserId) || [],
...getOrderedIds(ARCHIVED_FOLDER_ID)?.slice(0, GLOBAL_STATE_CACHE_ARCHIVED_CHAT_LIST_LIMIT).filter(isUserId) || [],
...getOrderedIds(ALL_FOLDER_ID)?.filter(isUserId) || [],
...global.contactList?.userIds || [],
...global.recentlyFoundChatIds?.filter(isUserId) || [],
...Object.keys(byId),
]).slice(0, GLOBAL_STATE_CACHE_USER_LIST_LIMIT);