Chat List: Fix suggestion title height (#6627)
This commit is contained in:
parent
b1ebdc4c93
commit
7e7ecbe897
@ -5,6 +5,7 @@ import { withGlobal } from '../../../../global';
|
||||
import type { ApiPromoData, ApiSession } from '../../../../api/types';
|
||||
|
||||
import { FRESH_AUTH_PERIOD } from '../../../../config';
|
||||
import { requestMutation } from '../../../../lib/fasterdom/fasterdom';
|
||||
import { selectIsCurrentUserFrozen } from '../../../../global/selectors';
|
||||
import buildClassName from '../../../../util/buildClassName';
|
||||
import { getServerTime } from '../../../../util/serverTime';
|
||||
@ -96,8 +97,10 @@ const ChatListPanes = ({
|
||||
zIndexIncrease: true,
|
||||
});
|
||||
|
||||
setExtraStyles(leftColumn, {
|
||||
'--chat-list-panes-height': `${totalHeight}px`,
|
||||
requestMutation(() => {
|
||||
setExtraStyles(leftColumn, {
|
||||
'--chat-list-panes-height': `${totalHeight}px`,
|
||||
});
|
||||
});
|
||||
}, [getUnconfirmedSessionHeight, getFrozenAccountState, getSuggestionState]);
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
grid-template-rows: min-content 1fr;
|
||||
|
||||
border-radius: var(--border-radius-default);
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@ import type { MessageListType, ThreadId } from '../../types';
|
||||
import type { Signal } from '../../util/signals';
|
||||
import { MAIN_THREAD_ID } from '../../api/types';
|
||||
|
||||
import { requestMutation } from '../../lib/fasterdom/fasterdom';
|
||||
import {
|
||||
selectCanAnimateRightColumn,
|
||||
selectChat,
|
||||
@ -115,8 +116,10 @@ const MiddleHeaderPanes = ({
|
||||
|
||||
applyAnimationState({ list: stateArray, noTransition: isFirstRender });
|
||||
|
||||
setExtraStyles(middleColumn, {
|
||||
'--middle-header-panes-height': `${totalHeight}px`,
|
||||
requestMutation(() => {
|
||||
setExtraStyles(middleColumn, {
|
||||
'--middle-header-panes-height': `${totalHeight}px`,
|
||||
});
|
||||
});
|
||||
}, [getAudioPlayerState, getGroupCallState, getPinnedState,
|
||||
getChatReportState, getBotAdState, getBotVerificationState, getPaidMessageChargeState]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user