fix(ui): fix weird scrolling

This commit is contained in:
sylenien 2022-05-17 18:18:08 +02:00 committed by Delirium
parent ff02248900
commit fcd79a6fb7

View file

@ -80,7 +80,7 @@ function DashboardMetricSelection(props) {
</div>
<div className="grid grid-cols-12 gap-4">
<div className="col-span-3">
<div className="grid grid-cols-1 gap-4 py-1" style={{ maxHeight: "calc(100vh - 165px)", overflowY: 'auto' }}>
<div className="grid grid-cols-1 gap-4 py-1" style={{ maxHeight: "calc(100vh - 300px)", overflowY: 'auto' }}>
{activeCategory && widgetCategories.map((category, index) =>
<WidgetCategoryItem
key={category.name}
@ -95,7 +95,7 @@ function DashboardMetricSelection(props) {
<div className="col-span-9">
<div
className="grid grid-cols-4 gap-4 -mx-4 px-4 pb-40 items-start py-1"
style={{ maxHeight: "calc(100vh - 165px)", overflowY: 'auto' }}
style={{ maxHeight: "calc(100vh - 170px)", overflowY: 'auto' }}
>
{activeCategory && activeCategory.widgets.map((widget: any) => (
<WidgetWrapper