feat: Sort document tags alphabetically and prevent hover/focus on empty folder menu items.

This commit is contained in:
2025-11-28 19:46:25 +01:00
parent 34604c5842
commit 4fd1b712fa
5 changed files with 23 additions and 5 deletions
@@ -472,7 +472,11 @@ const DocumentSummarySection: React.FC<DocumentSummarySectionProps> = ({
id: tag.id,
label: tag.label,
color: tag.color ?? tagLookupById.get(tag.id)?.color ?? null,
}));
})).sort((a, b) => {
const labelA = (a.label || '').toLowerCase();
const labelB = (b.label || '').toLowerCase();
return labelA.localeCompare(labelB);
});
}, [document?.tags, tagLookupById]);
const resolvedCorrespondents = useMemo(() => {