mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
Fix
This commit is contained in:
parent
a547e51bc9
commit
f46b4f9385
@ -110,21 +110,14 @@ export const ImpactMetrics: FC = () => {
|
|||||||
const plausibleChartItem: GridItem = {
|
const plausibleChartItem: GridItem = {
|
||||||
id: 'plausible-analytics',
|
id: 'plausible-analytics',
|
||||||
component: <PlausibleChartItem />,
|
component: <PlausibleChartItem />,
|
||||||
w: 12,
|
w: 6,
|
||||||
h: 4,
|
h: 2,
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
minW: 6,
|
|
||||||
minH: 3,
|
|
||||||
maxW: 12,
|
|
||||||
maxH: 6,
|
|
||||||
};
|
};
|
||||||
items.push(plausibleChartItem);
|
items.push(plausibleChartItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
const impactMetricsItems: GridItem[] = charts.map((config, index) => {
|
const impactMetricsItems: GridItem[] = charts.map((config, index) => {
|
||||||
const existingLayout = layout?.find((item) => item.i === config.id);
|
const existingLayout = layout?.find((item) => item.i === config.id);
|
||||||
const yOffset = plausibleMetricsEnabled ? 4 : 0;
|
|
||||||
return {
|
return {
|
||||||
id: config.id,
|
id: config.id,
|
||||||
component: (
|
component: (
|
||||||
@ -137,7 +130,7 @@ export const ImpactMetrics: FC = () => {
|
|||||||
w: existingLayout?.w ?? 6,
|
w: existingLayout?.w ?? 6,
|
||||||
h: existingLayout?.h ?? 4,
|
h: existingLayout?.h ?? 4,
|
||||||
x: existingLayout?.x,
|
x: existingLayout?.x,
|
||||||
y: existingLayout?.y ? existingLayout.y + yOffset : yOffset,
|
y: existingLayout?.y,
|
||||||
minW: 4,
|
minW: 4,
|
||||||
minH: 2,
|
minH: 2,
|
||||||
maxW: 12,
|
maxW: 12,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user