feat: reduce collection item size

This commit is contained in:
Sonny
2025-08-04 20:00:49 +02:00
parent b45d06bbe0
commit a4396ddf18
2 changed files with 1 additions and 8 deletions

View File

@@ -24,8 +24,6 @@ export default function CollectionItem({
}
}, [collection.id, activeCollection?.id]);
const linksCount = collection?.links.length ?? 0;
const showLinks = linksCount > 0;
return (
<Link
className={classes.link}
@@ -39,11 +37,6 @@ export default function CollectionItem({
<Text lineClamp={1} maw={'200px'} style={{ wordBreak: 'break-all' }}>
{collection.name}
</Text>
{showLinks && (
<Text style={{ whiteSpace: 'nowrap' }} c="dimmed" ml="sm">
{linksCount}
</Text>
)}
</Link>
);
}