From 2c8db31fe555f79c1d46710d90230d8d45106588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 28 Oct 2019 10:38:59 +0000 Subject: [PATCH] fix(ui): fix matcher overflowing parent of silence details --- .../GroupFooter/__snapshots__/index.test.js.snap | 2 +- ui/src/Components/ManagedSilence/SilenceComment.js | 2 +- ui/src/Components/ManagedSilence/SilenceDetails.js | 6 +++--- .../__snapshots__/SilenceComment.test.js.snap | 4 ++-- .../ManagedSilence/__snapshots__/index.test.js.snap | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) 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 6a32be090..c255111d2 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 @@ -313,7 +313,7 @@ exports[` mathes snapshot when silence is rendered 1`] = `
-
+
— me@example.com diff --git a/ui/src/Components/ManagedSilence/SilenceComment.js b/ui/src/Components/ManagedSilence/SilenceComment.js index 76de2d0c0..e7c65e9ba 100644 --- a/ui/src/Components/ManagedSilence/SilenceComment.js +++ b/ui/src/Components/ManagedSilence/SilenceComment.js @@ -42,7 +42,7 @@ const SilenceComment = ({
-
+
— {silence.createdBy} diff --git a/ui/src/Components/ManagedSilence/SilenceDetails.js b/ui/src/Components/ManagedSilence/SilenceDetails.js index dc6dd4731..126bdbda9 100644 --- a/ui/src/Components/ManagedSilence/SilenceDetails.js +++ b/ui/src/Components/ManagedSilence/SilenceDetails.js @@ -42,7 +42,7 @@ const SilenceDetails = ({ return (
-
+
{silence.matchers.map(matcher => ( @@ -109,7 +109,7 @@ const SilenceDetails = ({
-
+
-
+
— me@example.com @@ -83,7 +83,7 @@ exports[` Matches snapshot when expanded 1`] = `
-
+
— me@example.com diff --git a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap index c04db6a49..e1bef58c2 100644 --- a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap +++ b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap @@ -28,7 +28,7 @@ exports[` matches snapshot when collapsed 1`] = `
-
+
— me@example.com @@ -99,7 +99,7 @@ exports[` matches snapshot with expaned details 1`] = `
-
+
— me@example.com @@ -125,7 +125,7 @@ exports[` matches snapshot with expaned details 1`] = `
-
+
matches snapshot with expaned details 1`] = ` Matchers:
-
@@ -240,7 +240,7 @@ exports[` matches snapshot with expaned details 1`] = `
-
+