From a747a891f8e1f5e5c7bda7964c0a41ca4f62ea6a Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 5 Apr 2023 00:47:19 -0400 Subject: [PATCH] fix(css): restyle cards --- src/app/Dashboard/AddCard.tsx | 17 +++++++++++------ src/app/Dashboard/Dashboard.tsx | 2 +- src/app/Dashboard/JvmDetails/JvmDetailsCard.tsx | 2 +- src/app/Topology/styles/base.css | 1 - src/app/app.css | 4 ++++ .../__snapshots__/Dashboard.test.tsx.snap | 2 +- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/app/Dashboard/AddCard.tsx b/src/app/Dashboard/AddCard.tsx index 1bb5a41798..01a0b8ca99 100644 --- a/src/app/Dashboard/AddCard.tsx +++ b/src/app/Dashboard/AddCard.tsx @@ -75,6 +75,8 @@ import { Select, SelectOption, SelectOptionObject, + Stack, + StackItem, Switch, Text, TextArea, @@ -174,7 +176,7 @@ export const AddCard: React.FC = (_) => { return ( <> - + @@ -193,11 +195,12 @@ export const AddCard: React.FC = (_) => { = (_) => { : 'Next', }} > -
- + + {t('Dashboard.ADD_CARD_HELPER_TEXT')} + + - -
+ + = (_) => { }> - + {currLayout.cards diff --git a/src/app/Dashboard/JvmDetails/JvmDetailsCard.tsx b/src/app/Dashboard/JvmDetails/JvmDetailsCard.tsx index f08d0fcdc9..9dda22c176 100644 --- a/src/app/Dashboard/JvmDetails/JvmDetailsCard.tsx +++ b/src/app/Dashboard/JvmDetails/JvmDetailsCard.tsx @@ -94,7 +94,7 @@ export const JvmDetailsCard: React.FC = (props) => { > diff --git a/src/app/Topology/styles/base.css b/src/app/Topology/styles/base.css index 644773854b..69b1a9c087 100644 --- a/src/app/Topology/styles/base.css +++ b/src/app/Topology/styles/base.css @@ -129,7 +129,6 @@ Below CSS rules only apply to Topology components .entity-overview .pf-c-tab-content { flex: 1 1 0; - min-height: 0; overflow: auto; } diff --git a/src/app/app.css b/src/app/app.css index cce6b08dda..bbc56111a3 100644 --- a/src/app/app.css +++ b/src/app/app.css @@ -545,3 +545,7 @@ svg.topology__node-decorator-icon.success { svg.topology__node-decorator-icon.progress { fill: var(--pf-global--info-color--100); } + +#card-catalog-wizard .pf-c-wizard__main-body { + height: 100% +} diff --git a/src/test/Dashboard/__snapshots__/Dashboard.test.tsx.snap b/src/test/Dashboard/__snapshots__/Dashboard.test.tsx.snap index cb7d4ca75a..c4433e3f54 100644 --- a/src/test/Dashboard/__snapshots__/Dashboard.test.tsx.snap +++ b/src/test/Dashboard/__snapshots__/Dashboard.test.tsx.snap @@ -46,7 +46,7 @@ Array [ id="dashboard-grid" >