fix(ui): fix grid rows height

This commit is contained in:
sylenien 2022-08-11 16:40:40 +02:00 committed by Delirium
parent 3cbd5e1154
commit c9338fd116

View file

@ -66,7 +66,7 @@ function AddMetric({ metrics, history, siteId, title, description }: IProps) {
)}
</div>
<div className="grid h-full grid-cols-4 gap-4 px-8 items-start py-1" style={{ maxHeight: 'calc(100vh - 160px)', overflowY: 'auto' }}>
<div className="grid h-full grid-cols-4 gap-4 px-8 items-start py-1" style={{ maxHeight: 'calc(100vh - 160px)', overflowY: 'auto', gridTemplateRows: 'max-content' }}>
{metrics ? metrics.map((metric: any) => (
<WidgetWrapper
key={metric.metricId}