From 5b64a4699a079a8976f2b83cfc923a77db3f5794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 23 Dec 2019 14:56:23 +0000 Subject: [PATCH] fix(ui): margin should only be set between elements Right now margin is set after each element rather than to enfore space between two elements --- .../Alert/__snapshots__/index.test.js.snap | 14 +++++++------- .../Grid/AlertGrid/AlertGroup/Alert/index.js | 2 +- .../Annotation/__snapshots__/index.test.js.snap | 6 +++--- .../Grid/AlertGrid/AlertGroup/Annotation/index.js | 4 ++-- .../GroupFooter/__snapshots__/index.test.js.snap | 12 ++++++------ .../__snapshots__/index.test.js.snap | 2 +- ui/src/Styles/Components/AlertGroup.scss | 7 +++++++ ui/src/Styles/Components/BaseLabel.scss | 2 -- 8 files changed, 27 insertions(+), 22 deletions(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap index cb904d652..d01292a75 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap @@ -10,7 +10,7 @@ exports[` matches snapshot when inhibited 1`] = ` aria-describedby=\\"tippy-tooltip-5\\" data-original-title=\\"Click the icon to hide annotation value\\" > -
+
matches snapshot when inhibited 1`] = ` aria-describedby=\\"tippy-tooltip-6\\" data-original-title=\\"Click to show annotation value\\" > -
+
matches snapshot when inhibited 1`] = ` aria-describedby=\\"tippy-tooltip-7\\" data-original-title=\\"This alert is inhibited by other alerts\\" > - + matches snapshot when inhibited 1`] = ` matches snapshot with showAlertmanagers=false showReceiver=fa aria-describedby=\\"tippy-tooltip-1\\" data-original-title=\\"Click the icon to hide annotation value\\" > -
+
matches snapshot with showAlertmanagers=false showReceiver=fa aria-describedby=\\"tippy-tooltip-2\\" data-original-title=\\"Click to show annotation value\\" > -
+
matches snapshot with showAlertmanagers=false showReceiver=fa am.inhibitedBy.length) .reduce((sum, x) => sum + x) > 0 ? ( - + diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Annotation/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/Annotation/__snapshots__/index.test.js.snap index 4df42bb40..07d01b4aa 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Annotation/__snapshots__/index.test.js.snap +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Annotation/__snapshots__/index.test.js.snap @@ -5,7 +5,7 @@ exports[` matches snapshot 1`] = ` matches snapshot when visible=false 1`] = ` class style=\\"display:inline-block;max-width:100%\\" > -
+
matches snapshot when visible=true 1`] = ` class style=\\"display:inline-block;max-width:100%\\" > -
+
{ href={value} target="_blank" rel="noopener noreferrer" - className="components-label components-label-with-hover badge mr-1 components-grid-annotation-link" + className="components-label components-label-with-hover badge components-grid-annotation-link" > {name} diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap index 527b8061b..57d660381 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap @@ -10,7 +10,7 @@ exports[` matches snapshot 1`] = ` aria-describedby=\\"tippy-tooltip-1\\" data-original-title=\\"Click the icon to hide annotation value\\" > -