mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-21 03:14:16 +02:00
Fix list header wrap on item count
This commit is contained in:
@@ -345,30 +345,28 @@ export const AlbumListHeader = ({ itemCount, gridRef, tableRef }: AlbumListHeade
|
|||||||
>
|
>
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Group>
|
<Button
|
||||||
<Button
|
compact
|
||||||
compact
|
px={0}
|
||||||
px={0}
|
rightIcon={<RiArrowDownSLine size={15} />}
|
||||||
rightIcon={<RiArrowDownSLine size={15} />}
|
size="xl"
|
||||||
size="xl"
|
variant="subtle"
|
||||||
variant="subtle"
|
>
|
||||||
>
|
<Group noWrap>
|
||||||
<Group>
|
<TextTitle
|
||||||
<TextTitle
|
fw="bold"
|
||||||
fw="bold"
|
order={3}
|
||||||
order={3}
|
>
|
||||||
>
|
Albums
|
||||||
Albums
|
</TextTitle>
|
||||||
</TextTitle>
|
<Badge
|
||||||
<Badge
|
radius="xl"
|
||||||
radius="xl"
|
size="lg"
|
||||||
size="lg"
|
>
|
||||||
>
|
{itemCount === null || itemCount === undefined ? <SpinnerIcon /> : itemCount}
|
||||||
{itemCount === null || itemCount === undefined ? <SpinnerIcon /> : itemCount}
|
</Badge>
|
||||||
</Badge>
|
</Group>
|
||||||
</Group>
|
</Button>
|
||||||
</Button>
|
|
||||||
</Group>
|
|
||||||
</DropdownMenu.Target>
|
</DropdownMenu.Target>
|
||||||
<DropdownMenu.Dropdown>
|
<DropdownMenu.Dropdown>
|
||||||
<DropdownMenu.Label>Display type</DropdownMenu.Label>
|
<DropdownMenu.Label>Display type</DropdownMenu.Label>
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ export const SongListHeader = ({ itemCount, tableRef }: SongListHeaderProps) =>
|
|||||||
sx={{ paddingLeft: 0, paddingRight: 0 }}
|
sx={{ paddingLeft: 0, paddingRight: 0 }}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
>
|
>
|
||||||
<Group>
|
<Group noWrap>
|
||||||
<TextTitle
|
<TextTitle
|
||||||
fw="bold"
|
fw="bold"
|
||||||
order={3}
|
order={3}
|
||||||
|
|||||||
Reference in New Issue
Block a user