From 9bf832429169d7c6ae71348f38ae5e7ef403a415 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 30 Dec 2022 00:22:12 +0530 Subject: [PATCH] [BUG] Alerts and Findings overview table should have even height #250 (#267) (#276) Signed-off-by: Jovan Cvetkovic Signed-off-by: Jovan Cvetkovic (cherry picked from commit 8c5246c09e39b1aed799963b8ae78f34ba20a0ac) Co-authored-by: Jovan Cvetkovic Signed-off-by: AWSHurneyt --- 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; + } + } + } + } +}