Fix padding of conversation list

This commit is contained in:
Fedor Indutny
2025-01-28 11:15:34 -08:00
committed by GitHub
parent 7575bda35b
commit fbdf589f13
3 changed files with 12 additions and 6 deletions

View File

@@ -194,6 +194,7 @@ export type PropsType = {
scrollToRowIndex?: number;
shouldRecomputeRowHeights: boolean;
scrollable?: boolean;
hasDialogPadding?: boolean;
getPreferredBadge: PreferredBadgeSelectorType;
i18n: LocalizerType;
@@ -241,6 +242,7 @@ export function ConversationList({
scrollBehavior = ScrollBehavior.Default,
scrollToRowIndex,
scrollable = true,
hasDialogPadding = false,
shouldRecomputeRowHeights,
showChooseGroupMembers,
showFindByUsername,
@@ -583,7 +585,8 @@ export function ConversationList({
<ListView
className={classNames(
'module-conversation-list',
`module-conversation-list--width-${widthBreakpoint}`
`module-conversation-list--width-${widthBreakpoint}`,
hasDialogPadding && 'module-conversation-list--has-dialog-padding'
)}
width={dimensions.width}
height={dimensions.height}