-
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
Conversation
@@ -1111,14 +1111,13 @@ | |||
|
|||
.lh-gauge__percentage { | |||
width: 100%; | |||
height: var(--inset-size); |
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.
position: absolute; | ||
border-radius: inherit; |
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.
who knows why..
@@ -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 comment
The 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 comment
The 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 comment
The 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.
LGTM
The text score (eg "69") inside the gauge has had a slightly odd position.
Now its position is exactly in the half, due to a line-height: 0;
And the font-size is dynamically determined based off the circle size.