Skip to content

Commit

Permalink
Merge pull request #817 from prymitive/tweak-overview
Browse files Browse the repository at this point in the history
fix(ui): tweak display of labels on the overview modal
  • Loading branch information
prymitive authored Jul 11, 2019
2 parents c0c429b + 6201133 commit 2228f16
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`<MountedLabelWithPercent /> matches snapshot 1`] = `
bar
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress components-labelWithPercent-progress mr-1\\">
<div class=\\"progress-bar bg-warning\\"
role=\\"progressbar\\"
style=\\"width: 50%;\\"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/Components/Labels/LabelWithPercent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const LabelWithPercent = inject("alertStore")(
<span className="components-label-name">{name}:</span>{" "}
<span className="components-label-value">{value}</span>
</span>
<div className="progress silence-progress bg-white pr-1">
<div className="progress components-labelWithPercent-progress mr-1">
<div
className={`progress-bar ${progressBarBg}`}
role="progressbar"
Expand Down
8 changes: 8 additions & 0 deletions ui/src/Components/Labels/LabelWithPercent/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
@import "~bootswatch/dist/flatly/variables";

.components-labelWithPercent-percent {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}

.components-labelWithPercent-progress {
height: 2px;
margin-top: 2px;
background-color: darken($light, 10%);
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports[`<OverviewModalContent /> matches snapshot with labels to show 1`] = `
bar1
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress components-labelWithPercent-progress mr-1\\">
<div class=\\"progress-bar bg-warning\\"
role=\\"progressbar\\"
style=\\"width: 50%;\\"
Expand Down Expand Up @@ -79,7 +79,7 @@ exports[`<OverviewModalContent /> matches snapshot with labels to show 1`] = `
bar2
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress components-labelWithPercent-progress mr-1\\">
<div class=\\"progress-bar bg-success\\"
role=\\"progressbar\\"
style=\\"width: 25%;\\"
Expand Down Expand Up @@ -107,7 +107,7 @@ exports[`<OverviewModalContent /> matches snapshot with labels to show 1`] = `
bar3
</span>
</span>
<div class=\\"progress silence-progress bg-white pr-1\\">
<div class=\\"progress components-labelWithPercent-progress mr-1\\">
<div class=\\"progress-bar bg-success\\"
role=\\"progressbar\\"
style=\\"width: 25%;\\"
Expand Down

0 comments on commit 2228f16

Please sign in to comment.