-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report: make gauge font size and positioning dynamic #9057
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1111,14 +1111,13 @@ | |
|
||
.lh-gauge__percentage { | ||
width: 100%; | ||
height: var(--inset-size); | ||
height: var(--gauge-circle-size); | ||
position: absolute; | ||
border-radius: inherit; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. who knows why.. |
||
font-family: var(--monospace-font-family); | ||
font-size: var(--score-number-font-size); | ||
line-height: var(--score-number-font-size); | ||
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) / 3); | ||
top: calc(var(--score-container-padding) + var(--gauge-circle-size) / 2); | ||
} | ||
|
||
.lh-category .lh-gauge__percentage { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,4 @@ cp -r dist/dt-report-resources/ $fe_lh_dir | |
VERSION=$(node -e "console.log(require('./package.json').version)") | ||
sed -i '' -e "s/Version:.*/Version: $VERSION/g" "$tests_dir"/*-expected.txt | ||
|
||
echo "Done. To rebase the test expectations, run: ~/chromium/src/third_party/blink/tools/run_web_tests.py --no-retry 'http/tests/devtools/audits2/*' --reset-results" | ||
echo "Done. To rebase the test expectations, run: yarn --cwd ~/chromium/src/third_party/blink/renderer/devtools test 'http/tests/devtools/audits2/*' --reset-results" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😮 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing the gauge size is devtools related or these would be the most random cohabitating lines I think I've seen in a long time 😆 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely not related. Just a driveby. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't defined any more. /shrug.