Modify legend box hight

This commit is contained in:
yangdx
2025-04-08 13:02:28 +08:00
parent 8259b7b8bf
commit 6401b88ab4
4 changed files with 5 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ const Legend: React.FC<LegendProps> = ({ className }) => {
return (
<Card className={`p-2 max-w-xs ${className}`}>
<h3 className="text-sm font-medium mb-2">{t('graphPanel.legend')}</h3>
<ScrollArea className="max-h-40">
<ScrollArea className="max-h-50">
<div className="flex flex-col gap-1">
{Array.from(typeColorMap.entries()).map(([type, color]) => (
<div key={type} className="flex items-center gap-2">