refactor: improve AlbumPeople component to categorize known and unknown individuals

- Introduced useMemo to separate known and unknown people based on their names.
- Enhanced rendering logic to display known and unknown people distinctly.
- Updated UI elements for better layout and usability, including search input and person rendering.
- Adjusted padding and spacing for a more consistent design across the component.
This commit is contained in:
Varun Raj committed 2025-07-27 10:56:54 +05:30
1 parent e8b1076603
commit 8dab4ced5b
6 files changed
+66 -50

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ export default function Header({ leftComponent, rightComponent, title }: IProps)
</Head>
)}
<header key="header" className={
clsx("sticky z-10 top-0 w-full flex h-14 items-center gap-4 border-b bg-white dark:bg-black px-4 lg:h-[60px] lg:px-6")
clsx("sticky z-10 top-0 w-full flex h-12 items-center gap-4 border-b bg-white dark:bg-black px-4 lg:px-6")
}>
<Sheet>
<SheetTrigger asChild>
+4 -4
View File
@@ -18,14 +18,14 @@ export default function Sidebar() {
return (
<div className="hidden border-r bg-muted/40 md:block max-h-screen min-h-screen">
<div className="flex h-full max-h-screen flex-col gap-2">
<div className="flex h-14 items-center justify-between border-b px-2 lg:h-[60px] lg:px-2">
<div className="flex h-12 items-center justify-between border-b px-2 lg:px-2">
<Link href="/" className="flex items-center gap-1 font-semibold">
<img
src="/favicon.png"
width={32}
height={32}
width={26}
height={26}
alt="Immich Power Tools"
className="w-8 h-8"
className="w-6 h-6"
/>
<span className="">Immich Power Tools</span>
</Link>