feat(ui): make arrow icon rotate on boards list

This commit is contained in:
psychedelicious 2024-07-24 12:35:50 +10:00
parent 4e49689d46
commit d7a5fe2805

View File

@ -91,7 +91,12 @@ export const BoardsList = ({ isPrivate }: Props) => {
{allowPrivateBoards ? (
<Button variant="unstyled" onClick={onToggle}>
<Flex gap="2" alignItems="center">
<Icon boxSize="5" as={isOpen ? PiCaretDownBold : PiCaretRightBold} fill="base.500" />
<Icon
boxSize={4}
as={PiCaretDownBold}
transform={isOpen ? undefined : 'rotate(-90deg)'}
fill="base.500"
/>
<Text fontSize="sm" fontWeight="semibold" userSelect="none" color="base.500">
{boardListTitle}
</Text>