change(ui): webvitals size to 2 col

This commit is contained in:
Shekar Siri 2024-07-01 12:58:48 +02:00
parent aaf65c532d
commit bfe165692e
3 changed files with 4 additions and 6 deletions

View file

@ -27,7 +27,7 @@ function CustomMetricOverviewChart(props: Props) {
/>
</div>
</div>
<ResponsiveContainer height={100} width="100%" className='rounded-lg overflow-hidden'>
<ResponsiveContainer height={240} width="100%" className='rounded-lg overflow-hidden'>
<AreaChart
data={data.chart}
margin={{

View file

@ -253,8 +253,8 @@ function WidgetChart(props: Props) {
return <div>Unknown metric type</div>;
};
return (
<Loader loading={loading} style={{height: `${isOverviewWidget ? 100 : 240}px`}}>
<div style={{minHeight: isOverviewWidget ? 100 : 240}}>{renderChart()}</div>
<Loader loading={loading} style={{height: `240px`}}>
<div style={{minHeight: 240}}>{renderChart()}</div>
</Loader>
);
}

View file

@ -233,9 +233,7 @@ export default class Widget {
this.metricOf === FilterKey.PAGES_RESPONSE_TIME_DISTRIBUTION ||
this.metricType === USER_PATH
? 4
: this.metricType === WEB_VITALS
? 1
: 2
: 2
}
};