From 7ea45bb714a57d5c4f12247a9cdd5940d926719f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 30 May 2020 10:11:34 -0700 Subject: [PATCH] Fix some styling issues in Quality Profile and Release Profiles --- frontend/src/Components/Form/KeyValueListInputItem.js | 11 ++++++----- .../Settings/Profiles/Quality/QualityProfileItem.css | 1 + .../Profiles/Quality/QualityProfileItemGroup.css | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/Components/Form/KeyValueListInputItem.js b/frontend/src/Components/Form/KeyValueListInputItem.js index e63528f67..f6b82ed0f 100644 --- a/frontend/src/Components/Form/KeyValueListInputItem.js +++ b/frontend/src/Components/Form/KeyValueListInputItem.js @@ -87,16 +87,17 @@ class KeyValueListInputItem extends Component { /> - { - !isNew && -
+
+ { + isNew ? + null : -
- } + } +
); } diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css index 4e3f4aae5..bf54fedc2 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css @@ -48,6 +48,7 @@ composes: buton from '~Components/Link/IconButton.css'; display: flex; + align-items: center; justify-content: center; flex-shrink: 0; margin-right: 5px; diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css index 613a9b2d3..dad463b28 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css @@ -74,6 +74,7 @@ composes: buton from '~Components/Link/IconButton.css'; display: flex; + align-items: center; justify-content: center; flex-shrink: 0; margin-right: 5px;