diff --git a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemKillsCounter.tsx b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemKillsCounter.tsx index a75c266e..57d14b1d 100644 --- a/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemKillsCounter.tsx +++ b/assets/js/hooks/Mapper/components/map/components/SolarSystemNode/SolarSystemKillsCounter.tsx @@ -24,7 +24,6 @@ export const KillsCounter = ({ killsCount, systemId, className, children, size = ; @@ -36,8 +39,7 @@ export const SystemKillsContent: React.FC = ({ } }, [kills, timeRange, limit]); - const itemSize = 35; - const computedHeight = autoSize ? Math.max(processedKills.length, 1) * itemSize : undefined; + const computedHeight = autoSize ? Math.max(processedKills.length, 1) * ITEM_HEIGHT + CONTENT_MARGINS : undefined; const containerRef = useRef(null); const scrollerRef = useRef(null); @@ -70,7 +72,7 @@ export const SystemKillsContent: React.FC = ({