diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index a2b0141b3..4193a09cd 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -4916,6 +4916,10 @@ button.module-calling-participants-list__contact { scrollbar-gutter: stable; } + &--has-dialog-padding { + padding-block-start: 8px; + } + &__item { &--archive-button { @include mixins.button-reset; @@ -5614,10 +5618,6 @@ button.module-calling-participants-list__contact { } } -.module-left-pane__dialogs { - margin-bottom: 8px; -} - .module-left-pane__header { flex-grow: 0; flex-shrink: 0; diff --git a/ts/components/ConversationList.tsx b/ts/components/ConversationList.tsx index 1ccd35455..cfcb2872c 100644 --- a/ts/components/ConversationList.tsx +++ b/ts/components/ConversationList.tsx @@ -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({ )} - {dialogs.length && !hideHeader ? ( + {hasDialogs ? (
{dialogs.map(({ key, dialog }) => ( {dialog} @@ -812,6 +814,7 @@ export function LeftPane({ getPreferredBadge={getPreferredBadge} getRow={getRow} i18n={i18n} + hasDialogPadding={hasDialogs} onClickArchiveButton={showArchivedConversations} onClickContactCheckbox={( conversationId: string,