Skip to content

Commit

Permalink
report: redefine gauge percentage positioning (#15486)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Sep 20, 2023
1 parent 6e73dae commit 1602beb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions report/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1335,12 +1335,12 @@
.lh-gauge__percentage {
width: 100%;
height: var(--gauge-circle-size);
line-height: var(--gauge-circle-size);
position: absolute;
font-family: var(--report-font-family-monospace);
font-size: calc(var(--gauge-circle-size) * 0.34 + 1.3px);
line-height: 0;
text-align: center;
top: calc(var(--score-container-padding) + var(--gauge-circle-size) / 2);
top: var(--score-container-padding);
}

.lh-category .lh-gauge__percentage {
Expand Down
4 changes: 0 additions & 4 deletions report/assets/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@
left: 0px;
right: 0px;
}

.lh-gauge__wrapper:first-of-type {
contain: none;
}
</style>
<div class="lh-scores-wrapper">
<div class="lh-scores-container">
Expand Down
4 changes: 2 additions & 2 deletions report/renderer/components.js

Large diffs are not rendered by default.

0 comments on commit 1602beb

Please sign in to comment.