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 3d11e8f3f..077095c38 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 @@ -295,7 +295,7 @@ exports[` mathes snapshot when silence is rendered 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"bell-slash\\" - class=\\"svg-inline--fa fa-bell-slash fa-w-20 text-muted\\" + class=\\"svg-inline--fa fa-bell-slash fa-w-20 components-managed-silence-icon text-muted\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 640 512\\" @@ -307,10 +307,10 @@ exports[` mathes snapshot when silence is rendered 1`] = `
-
+
Mocked Silence
-
+
— me@example.com @@ -323,12 +323,12 @@ exports[` mathes snapshot when silence is rendered 1`] = `
-
+
- +
{comment}
-
+
— {silence.createdBy} @@ -59,7 +62,7 @@ const SilenceComment = ({
-
+
diff --git a/ui/src/Components/ManagedSilence/SilenceDetails.js b/ui/src/Components/ManagedSilence/SilenceDetails.js index 7a0322e2f..db632ac57 100644 --- a/ui/src/Components/ManagedSilence/SilenceDetails.js +++ b/ui/src/Components/ManagedSilence/SilenceDetails.js @@ -98,7 +98,7 @@ const SilenceDetails = ({ {silence.matchers.map(matcher => ( {matcher.name} {matcher.isRegex diff --git a/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap b/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap index 365298859..1af97975a 100644 --- a/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap +++ b/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap @@ -8,7 +8,7 @@ exports[` Matches snapshot when collapsed 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"bell-slash\\" - class=\\"svg-inline--fa fa-bell-slash fa-w-20 text-muted\\" + class=\\"svg-inline--fa fa-bell-slash fa-w-20 components-managed-silence-icon text-muted\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 640 512\\" @@ -20,10 +20,10 @@ exports[` Matches snapshot when collapsed 1`] = `
-
+
Mocked Silence
-
+
— me@example.com @@ -36,7 +36,7 @@ exports[` Matches snapshot when collapsed 1`] = `
-
+
Matches snapshot when collapsed 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-up\\" - class=\\"svg-inline--fa fa-chevron-up fa-w-14 my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" + class=\\"svg-inline--fa fa-chevron-up fa-w-14 components-managed-silence-icon undefined ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 448 512\\" @@ -77,7 +77,7 @@ exports[` Matches snapshot when expanded 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"bell-slash\\" - class=\\"svg-inline--fa fa-bell-slash fa-w-20 text-muted\\" + class=\\"svg-inline--fa fa-bell-slash fa-w-20 components-managed-silence-icon text-muted\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 640 512\\" @@ -89,17 +89,17 @@ exports[` Matches snapshot when expanded 1`] = `
-
+
Mocked Silence
-
+
— me@example.com
-
+
Matches snapshot when expanded 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" - class=\\"svg-inline--fa fa-chevron-down fa-w-14 my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" + class=\\"svg-inline--fa fa-chevron-down fa-w-14 components-managed-silence-icon undefined ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 448 512\\" diff --git a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap index 70d3d16bd..83d733d00 100644 --- a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap +++ b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap @@ -10,7 +10,7 @@ exports[` matches snapshot when collapsed 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"bell-slash\\" - class=\\"svg-inline--fa fa-bell-slash fa-w-20 text-muted\\" + class=\\"svg-inline--fa fa-bell-slash fa-w-20 components-managed-silence-icon text-muted\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 640 512\\" @@ -22,10 +22,10 @@ exports[` matches snapshot when collapsed 1`] = `
-
+
Mocked Silence
-
+
— me@example.com @@ -48,7 +48,7 @@ exports[` matches snapshot when collapsed 1`] = `
-
+
matches snapshot when collapsed 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-up\\" - class=\\"svg-inline--fa fa-chevron-up fa-w-14 my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" + class=\\"svg-inline--fa fa-chevron-up fa-w-14 components-managed-silence-icon my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 448 512\\" @@ -93,7 +93,7 @@ exports[` matches snapshot with expaned details 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"bell-slash\\" - class=\\"svg-inline--fa fa-bell-slash fa-w-20 text-muted\\" + class=\\"svg-inline--fa fa-bell-slash fa-w-20 components-managed-silence-icon text-muted\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 640 512\\" @@ -105,17 +105,17 @@ exports[` matches snapshot with expaned details 1`] = `
-
+
Mocked Silence
-
+
— me@example.com
-
+
matches snapshot with expaned details 1`] = ` focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" - class=\\"svg-inline--fa fa-chevron-down fa-w-14 my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" + class=\\"svg-inline--fa fa-chevron-down fa-w-14 components-managed-silence-icon my-sm-auto mt-2 mb-0 ml-sm-2 ml-auto mr-sm-0 mr-1 text-muted cursor-pointer\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewbox=\\"0 0 448 512\\" @@ -255,10 +255,10 @@ exports[` matches snapshot with expaned details 1`] = `
- + foo=bar - + baz=~regex
diff --git a/ui/src/Components/ManagedSilence/index.scss b/ui/src/Components/ManagedSilence/index.scss index 7e1f19849..55bae8b2d 100644 --- a/ui/src/Components/ManagedSilence/index.scss +++ b/ui/src/Components/ManagedSilence/index.scss @@ -13,6 +13,14 @@ } } +.components-managed-silence-icon { + height: 1.4rem; +} + +.components-managed-silence-comment { + line-height: 1.4rem; +} + .components-managed-silence-cite { font-size: 85%; }