mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix: bug with homepage charts in rednering due to x axis (#46481)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? undefined goes boom <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Style** * Refined LogsBarChart component layout rendering with simplified styling approach * Adjusted XAxis height behavior for improved chart display <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46481?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
d1792a9de4
commit
7bd061a670
1 file changed
+1
-5
@@ -70,10 +70,7 @@ export const LogsBarChart = ({
|
||||
data-testid="logs-bar-chart"
|
||||
className={cn('flex flex-col gap-y-3', isFullHeight ? 'h-full' : 'h-24')}
|
||||
>
|
||||
<ChartContainer
|
||||
className={cn('h-full', isFullHeight && 'aspect-auto')}
|
||||
config={chartConfig ?? defaultChartConfig}
|
||||
>
|
||||
<ChartContainer className="h-full" config={chartConfig ?? defaultChartConfig}>
|
||||
<RechartBarChart
|
||||
data={data}
|
||||
onMouseMove={(e: any) => {
|
||||
@@ -97,7 +94,6 @@ export const LogsBarChart = ({
|
||||
dataKey="timestamp"
|
||||
interval={data.length - 2}
|
||||
tick={false}
|
||||
height={hideDateRange ? 1 : undefined}
|
||||
axisLine={{ stroke: CHART_COLORS.AXIS }}
|
||||
tickLine={{ stroke: CHART_COLORS.AXIS }}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user