change(ui): webvitals size to 2 col
This commit is contained in:
parent
aaf65c532d
commit
bfe165692e
3 changed files with 4 additions and 6 deletions
|
|
@ -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={{
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue