mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 10:45:54 +00:00
chore: release version v1.47.6
This commit is contained in:
@@ -24,7 +24,6 @@ export const KillsCounter = ({ killsCount, systemId, className, children, size =
|
|||||||
<SystemKillsContent
|
<SystemKillsContent
|
||||||
kills={detailedKills}
|
kills={detailedKills}
|
||||||
systemNameMap={systemNameMap}
|
systemNameMap={systemNameMap}
|
||||||
compact={true}
|
|
||||||
onlyOneSystem={true}
|
onlyOneSystem={true}
|
||||||
autoSize={true}
|
autoSize={true}
|
||||||
limit={killsCount}
|
limit={killsCount}
|
||||||
|
|||||||
@@ -90,11 +90,7 @@ $tooltip-bg: #202020;
|
|||||||
|
|
||||||
&.eve-system-status-home {
|
&.eve-system-status-home {
|
||||||
border: 1px solid var(--eve-solar-system-status-color-home-dark30);
|
border: 1px solid var(--eve-solar-system-status-color-home-dark30);
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(45deg, var(--eve-solar-system-status-color-background), transparent);
|
||||||
45deg,
|
|
||||||
var(--eve-solar-system-status-color-background),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
&.selected {
|
&.selected {
|
||||||
border-color: var(--eve-solar-system-status-color-home);
|
border-color: var(--eve-solar-system-status-color-home);
|
||||||
}
|
}
|
||||||
@@ -102,11 +98,7 @@ $tooltip-bg: #202020;
|
|||||||
|
|
||||||
&.eve-system-status-friendly {
|
&.eve-system-status-friendly {
|
||||||
border: 1px solid var(--eve-solar-system-status-color-friendly-dark20);
|
border: 1px solid var(--eve-solar-system-status-color-friendly-dark20);
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(275deg, var(--eve-solar-system-status-friendly-dark30), transparent);
|
||||||
275deg,
|
|
||||||
var(--eve-solar-system-status-friendly-dark30),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
&.selected {
|
&.selected {
|
||||||
border-color: var(--eve-solar-system-status-color-friendly-dark5);
|
border-color: var(--eve-solar-system-status-color-friendly-dark5);
|
||||||
}
|
}
|
||||||
@@ -121,27 +113,15 @@ $tooltip-bg: #202020;
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.eve-system-status-warning {
|
&.eve-system-status-warning {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(275deg, var(--eve-solar-system-status-warning), transparent);
|
||||||
275deg,
|
|
||||||
var(--eve-solar-system-status-warning),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.eve-system-status-dangerous {
|
&.eve-system-status-dangerous {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(275deg, var(--eve-solar-system-status-dangerous), transparent);
|
||||||
275deg,
|
|
||||||
var(--eve-solar-system-status-dangerous),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.eve-system-status-target {
|
&.eve-system-status-target {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(275deg, var(--eve-solar-system-status-target), transparent);
|
||||||
275deg,
|
|
||||||
var(--eve-solar-system-status-target),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,7 +234,7 @@ $tooltip-bg: #202020;
|
|||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-shadow: 0 0 2px rgba(231, 146, 52, 0.73);
|
text-shadow: 0 0 2px rgba(231, 146, 52, 0.73);
|
||||||
color: var(--rf-tag-color, #38BDF8);
|
color: var(--rf-tag-color, #38bdf8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Firefox kostyl */
|
/* Firefox kostyl */
|
||||||
@@ -263,7 +243,6 @@ $tooltip-bg: #202020;
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.BottomRow {
|
.BottomRow {
|
||||||
@@ -376,4 +355,3 @@ $tooltip-bg: #202020;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ import { VirtualScroller } from 'primereact/virtualscroller';
|
|||||||
import { useSystemKillsItemTemplate } from '../hooks/useSystemKillsItemTemplate';
|
import { useSystemKillsItemTemplate } from '../hooks/useSystemKillsItemTemplate';
|
||||||
import classes from './SystemKillsContent.module.scss';
|
import classes from './SystemKillsContent.module.scss';
|
||||||
|
|
||||||
|
export const ITEM_HEIGHT = 35;
|
||||||
|
export const CONTENT_MARGINS = 5;
|
||||||
|
|
||||||
export interface SystemKillsContentProps {
|
export interface SystemKillsContentProps {
|
||||||
kills: DetailedKill[];
|
kills: DetailedKill[];
|
||||||
systemNameMap: Record<string, string>;
|
systemNameMap: Record<string, string>;
|
||||||
@@ -36,8 +39,7 @@ export const SystemKillsContent: React.FC<SystemKillsContentProps> = ({
|
|||||||
}
|
}
|
||||||
}, [kills, timeRange, limit]);
|
}, [kills, timeRange, limit]);
|
||||||
|
|
||||||
const itemSize = 35;
|
const computedHeight = autoSize ? Math.max(processedKills.length, 1) * ITEM_HEIGHT + CONTENT_MARGINS : undefined;
|
||||||
const computedHeight = autoSize ? Math.max(processedKills.length, 1) * itemSize : undefined;
|
|
||||||
|
|
||||||
const containerRef = useRef<HTMLDivElement>(null);
|
const containerRef = useRef<HTMLDivElement>(null);
|
||||||
const scrollerRef = useRef<VirtualScroller | null>(null);
|
const scrollerRef = useRef<VirtualScroller | null>(null);
|
||||||
@@ -70,7 +72,7 @@ export const SystemKillsContent: React.FC<SystemKillsContentProps> = ({
|
|||||||
<VirtualScroller
|
<VirtualScroller
|
||||||
ref={autoSize ? undefined : scrollerRef}
|
ref={autoSize ? undefined : scrollerRef}
|
||||||
items={processedKills}
|
items={processedKills}
|
||||||
itemSize={itemSize}
|
itemSize={ITEM_HEIGHT}
|
||||||
itemTemplate={itemTemplate}
|
itemTemplate={itemTemplate}
|
||||||
autoSize={autoSize}
|
autoSize={autoSize}
|
||||||
scrollWidth="100%"
|
scrollWidth="100%"
|
||||||
|
|||||||
Reference in New Issue
Block a user