Skip to content

Commit

Permalink
fix(ui): fix help tab css
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Jun 29, 2021
1 parent 1fa6207 commit 7184908
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions ui/src/Components/MainModal/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const QueryHelp: FC<{
}> = ({ title, operators, warning, children }) => (
<>
<dt>{title}</dt>
<dd className="mb-5">
<dd>
<div>
Supported operators:{" "}
{operators.map((op) => (
Expand All @@ -44,7 +44,7 @@ const QueryHelp: FC<{
))}
</div>
{warning ? (
<div className="my-1 alert alert-secondary">
<div className="my-1 alert alert-secondary p-2">
<FontAwesomeIcon icon={faInfoCircle} className="me-1" />
{warning}
</div>
Expand Down
26 changes: 13 additions & 13 deletions ui/src/Components/MainModal/__snapshots__/Help.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on any label
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -316,7 +316,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the Alertmanager instance name they were collected from
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -383,7 +383,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the Alertmanager cluster name
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -450,7 +450,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the receiver name
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -509,7 +509,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the state
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -568,7 +568,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the Alertmanager alert fingerprint
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -615,7 +615,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match suppressed alerts based on the silence ID
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -662,7 +662,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the author of silence
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down Expand Up @@ -729,7 +729,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on the ticket IDs detected in the silence comment
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand All @@ -745,7 +745,7 @@ exports[`<Help /> matches snapshot 1`] = `
!~
</kbd>
</div>
<div class=\\"my-1 alert alert-secondary\\">
<div class=\\"my-1 alert alert-secondary p-2\\">
<svg aria-hidden=\\"true\\"
focusable=\\"false\\"
data-prefix=\\"fas\\"
Expand Down Expand Up @@ -813,14 +813,14 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Limit number of displayed alerts
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
=
</kbd>
</div>
<div class=\\"my-1 alert alert-secondary\\">
<div class=\\"my-1 alert alert-secondary p-2\\">
<svg aria-hidden=\\"true\\"
focusable=\\"false\\"
data-prefix=\\"fas\\"
Expand Down Expand Up @@ -856,7 +856,7 @@ exports[`<Help /> matches snapshot 1`] = `
<dt>
Match alerts based on creation timestamp
</dt>
<dd class=\\"mb-5\\">
<dd>
<div>
Supported operators:
<kbd class=\\"me-1\\">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/Styles/RebootlessBootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//@import "bootstrap/scss/breadcrumb";
@import "bootstrap/scss/pagination";
@import "bootstrap/scss/badge";
//@import "bootstrap/scss/alert";
@import "bootstrap/scss/alert";
@import "bootstrap/scss/progress";
@import "bootstrap/scss/list-group";
@import "bootstrap/scss/close";
Expand Down

0 comments on commit 7184908

Please sign in to comment.