-
Notifications
You must be signed in to change notification settings - Fork 117
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
fix(website): update calculations for percentages #4175
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: d341538 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit d341538. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Size Change: +26 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d341538:
|
Paste
|
Project |
Paste
|
Branch Review |
fix-size-calculation
|
Run status |
|
Run duration | 02m 04s |
Commit |
|
Committer | kodiakhq[bot] |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
67
|
View all changes introduced in this branch ↗︎ |
const remValue = Number(value.replace("rem", "").trim()); | ||
let remValue; | ||
|
||
if (value.includes("%")) { |
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.
nice 👏
Paste
|
Project |
Paste
|
Branch Review |
fix-size-calculation
|
Run status |
|
Run duration | 06m 01s |
Commit |
|
Committer | krisantrobus |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
125
|
View all changes introduced in this branch ↗︎ |
Resolve an issue where percentages were not being converted correctly to pixel values.
For engineering, I also made changes to vs-code plugin. Saw the calculation was there. The tests were not running os I had to update dependencies and refactor some code but I got them back up and passing.
Before:
![image](https://private-user-images.githubusercontent.com/55083528/391589508-c167f583-7789-4a54-ba83-73c5a654df5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzYyNjUsIm5iZiI6MTczOTQ3NTk2NSwicGF0aCI6Ii81NTA4MzUyOC8zOTE1ODk1MDgtYzE2N2Y1ODMtNzc4OS00YTU0LWJhODMtNzNjNWE2NTRkZjVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5NDYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJiY2FkZTQ0NWIzNzA2ZjFhYzYzOGEzNGUwNzI4ODNkMmQzYzAxNDkxNmE5YmY1OWZjMGY4OGIxNWFhMjgwZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hXAPP3LkJTR5xAyfhxyr-cboVwPp08SbAYm7xy9zPBQ)
After:
![image](https://private-user-images.githubusercontent.com/55083528/391589924-80156846-c7bd-450e-9818-e349fa00e909.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzYyNjUsIm5iZiI6MTczOTQ3NTk2NSwicGF0aCI6Ii81NTA4MzUyOC8zOTE1ODk5MjQtODAxNTY4NDYtYzdiZC00NTBlLTk4MTgtZTM0OWZhMDBlOTA5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5NDYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhNDE0MmFmNGIyMWExNGYwOWZhZDY5ZDI3YzAzZDAyOTFkZDk3MzM2NTdkNjNhODVmM2FkNTIzZjIwODcyMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UF6keNSDlVvzWpYRDVPVxqSY2k2JB_dejJj5KYqJy30)