Skip to content

Commit

Permalink
#7398 fix the spark progress bar labels alignment (#7400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed May 22, 2018
1 parent eef7600 commit d0ffc21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/notebook/src/SparkStateProgress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class SparkStateProgressView extends widgets.VBoxView {
let valueActive = state.active;
let valueWaiting = max - (valueDone + valueActive);

this.progressLabels = document.createElement('p');
this.progressLabels = document.createElement('div');
this.progressLabels.classList.add('bx-spark-stageProgressLabels');

this.progressLabels.innerHTML = `
Expand Down
13 changes: 13 additions & 0 deletions js/notebook/src/shared/style/spark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@
.bx-spark-stageProgressBar {
margin: 0 10px;
}

.bx-spark-stageProgressLabels {
display: block;
line-height: 100%;
height: 18px;
align-items: center;

.label {
display: inline-block;
max-height: 100%;
line-height: 150%;
}
}

0 comments on commit d0ffc21

Please sign in to comment.