File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
dashboard/src/components/charts Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -551,7 +551,7 @@ export function AllNodesStackedBarChart() {
551551 config = { chartConfig }
552552 className = "max-h-[400px] min-h-[200px] w-full"
553553 style = { {
554- marginBottom : navigator . userAgent . includes ( 'Safari' ) && navigator . platform . includes ( 'Mac' ) ? `${ window . innerWidth * 0.13 + window . innerWidth / 20 } px` : '0' ,
554+ marginBottom : navigator . userAgent . includes ( 'Safari' ) && navigator . platform . includes ( 'Mac' ) ? `${ 0.18 * window . innerWidth } px` : '0' ,
555555 } }
556556 >
557557 { chartData && chartData . length > 0 ? (
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export function CostumeBarChart({ nodeId }: CostumeBarChartProps) {
355355 config = { chartConfig }
356356 className = "max-h-[300px] min-h-[150px] w-full overflow-x-auto sm:max-h-[400px] sm:min-h-[200px]"
357357 style = { {
358- marginBottom : navigator . userAgent . includes ( 'Safari' ) && navigator . platform . includes ( 'Mac' ) ? `${ window . innerWidth * 0.13 + window . innerWidth / 20 } px` : '0' ,
358+ marginBottom : navigator . userAgent . includes ( 'Safari' ) && navigator . platform . includes ( 'Mac' ) ? `${ 0.18 * window . innerWidth } px` : '0' ,
359359 } }
360360 >
361361 { chartData && chartData . length > 0 ? (
You can’t perform that action at this time.
0 commit comments