Skip to content

Commit 3a2e807

Browse files
committed
fix: Remove dynamic marginBottom style from chart components for improved layout consistency
1 parent f8087c4 commit 3a2e807

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

dashboard/src/components/charts/all-nodes-stacked-bar-chart.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,6 @@ export function AllNodesStackedBarChart() {
516516
dir="ltr"
517517
config={chartView === 'pie' ? pieChartConfig : chartConfig}
518518
className="max-h-[400px] min-h-[200px] w-full"
519-
style={{
520-
marginBottom: navigator.userAgent.includes('Safari') && navigator.platform.includes('Mac') ? `${0.18 * window.innerWidth}px` : '0',
521-
}}
522519
>
523520
{chartData.length > 0 && chartView === 'bar' ? (
524521
<BarChart

dashboard/src/components/charts/costume-bar-chart.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ export function CostumeBarChart({ nodeId }: CostumeBarChartProps) {
298298
dir="ltr"
299299
config={chartConfig}
300300
className="max-h-[300px] min-h-[150px] w-full overflow-x-auto sm:max-h-[400px] sm:min-h-[200px]"
301-
style={{
302-
marginBottom: navigator.userAgent.includes('Safari') && navigator.platform.includes('Mac') ? `${0.18 * window.innerWidth}px` : '0',
303-
}}
304301
>
305302
{chartData.length > 0 ? (
306303
<BarChart accessibilityLayer data={chartData} margin={{ top: 5, right: 10, left: 10, bottom: 5 }}>

0 commit comments

Comments
 (0)