fix(dropdown): separator width + DropdownHeader height (#12285)

## Before

![CleanShot 2025-05-26 at 15 26
35@2x](https://github.com/user-attachments/assets/d6247af2-6008-4234-b777-13597c697b12)

## After

![CleanShot 2025-05-26 at 15 26
42@2x](https://github.com/user-attachments/assets/65447c84-4313-4f9a-831d-efc1eccd3d26)
This commit is contained in:
Antoine Moreaux
2025-05-27 11:17:03 +02:00
committed by GitHub
parent 8cf3b83bb9
commit a83279ddce
5 changed files with 63 additions and 45 deletions

View File

@ -73,6 +73,12 @@ const StyledSelectedSortDirectionContainer = styled.div`
z-index: 1000;
`;
const StyledDropdownMenuHeaderEndComponent = styled.div`
padding: ${({ theme }) => theme.spacing(1)};
display: flex;
align-items: center;
`;
export type ObjectSortDropdownButtonProps = {
hotkeyScope: HotkeyScope;
};
@ -253,12 +259,17 @@ export const ObjectSortDropdownButton = ({
!isRecordSortDirectionMenuUnfolded,
)
}
EndComponent={<IconChevronDown size={theme.icon.size.md} />}
EndComponent={
<StyledDropdownMenuHeaderEndComponent>
<IconChevronDown size={theme.icon.size.md} />
</StyledDropdownMenuHeaderEndComponent>
}
>
{selectedRecordSortDirection === 'asc'
? t`Ascending`
: t`Descending`}
</DropdownMenuHeader>
<DropdownMenuSeparator />
<StyledInput
autoFocus
value={objectSortDropdownSearchInput}