Refine sidebar collapse behavior
This commit is contained in:
parent
896af10ba9
commit
a834e07abf
@ -69,11 +69,20 @@ export default function HeaderList({
|
|||||||
'text-xs font-medium tracking-wider',
|
'text-xs font-medium tracking-wider',
|
||||||
'border-medium rounded-md',
|
'border-medium rounded-md',
|
||||||
'px-[5px] h-5!',
|
'px-[5px] h-5!',
|
||||||
'hover:bg-dim active:bg-main',
|
'hover:bg-dim hover:text-main active:bg-main',
|
||||||
|
'group',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{<span className="flex items-center gap-1">
|
{<span className="flex items-center gap-1">
|
||||||
<span>{isExpanded ? 'LESS' : 'MORE'}</span>
|
{isExpanded
|
||||||
|
? 'LESS'
|
||||||
|
: <>
|
||||||
|
MORE
|
||||||
|
<span className="hidden group-hover:inline text-dim!">
|
||||||
|
{' '}
|
||||||
|
{items.length - maxItems}
|
||||||
|
</span>
|
||||||
|
</>}
|
||||||
{isExpanded
|
{isExpanded
|
||||||
? <IoChevronUpOutline size={12} />
|
? <IoChevronUpOutline size={12} />
|
||||||
: <IoChevronDownOutline size={12} />}
|
: <IoChevronDownOutline size={12} />}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import {
|
|||||||
} from '@/category';
|
} from '@/category';
|
||||||
import PhotoFocalLength from '@/focal/PhotoFocalLength';
|
import PhotoFocalLength from '@/focal/PhotoFocalLength';
|
||||||
|
|
||||||
const SIDEBAR_ITEM_MAX_COUNT = 24;
|
const SIDEBAR_ITEM_MAX_COUNT = 28;
|
||||||
|
|
||||||
export default function PhotoGridSidebar({
|
export default function PhotoGridSidebar({
|
||||||
photosCount,
|
photosCount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user