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