From 8c5246c09e39b1aed799963b8ae78f34ba20a0ac Mon Sep 17 00:00:00 2001 From: Jovan Cvetkovic Date: Thu, 29 Dec 2022 18:18:37 +0100 Subject: [PATCH] [BUG] Alerts and Findings overview table should have even height #250 (#267) Signed-off-by: Jovan Cvetkovic Signed-off-by: Jovan Cvetkovic --- public/app.scss | 1 + .../components/Widgets/WidgetContainer.scss | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 public/pages/Overview/components/Widgets/WidgetContainer.scss diff --git a/public/app.scss b/public/app.scss index 0e6d6a564..9c4535b3b 100644 --- a/public/app.scss +++ b/public/app.scss @@ -46,3 +46,4 @@ $euiTextColor: $euiColorDarkestShade !default; } @import "./components/Charts/ChartContainer.scss"; +@import "./pages/Overview/components/Widgets/WidgetContainer.scss"; diff --git a/public/pages/Overview/components/Widgets/WidgetContainer.scss b/public/pages/Overview/components/Widgets/WidgetContainer.scss new file mode 100644 index 000000000..5ada2de0f --- /dev/null +++ b/public/pages/Overview/components/Widgets/WidgetContainer.scss @@ -0,0 +1,25 @@ +.grid-item { + > div { + height: 100%; + display: flex; + flex-direction: column; + + > :nth-child(1) { + flex: 0; + } + + > :nth-child(3) { + flex: 1; + + > div { + height: 100%; + display: flex; + flex-direction: column; + + > :first-child { + flex: 1; + } + } + } + } +}