-
Notifications
You must be signed in to change notification settings - Fork 2k
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
My Home: Fix inconsistencies between the different cards on mobile #97070
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~77 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~15 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
fa86c0c
to
846b69d
Compare
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.
Looks much better now, especially on mobile.
The only inconsistency I found, I described here: #97070 (comment).
Though, I'm not sure if it is intentional or not. It looks like a special card.
364d0ab
to
d5c108e
Compare
Thanks for the review, Dmitry!
Good catch! I've fixed that card as well. |
Resolves #97066
Proposed Changes
customer-home__card
. This is forcards
only.Tasks
(another card variant) have a more specific styling so I've skipped those.breakpoint-deprecated
calls.tasks
having no padding on mobile (potentially related to Bug: My Home Black Friday card loses padding on <600px screens #96936).Why are these changes being made?
Because once you see these issues, it's hard to unsee them. 🙂
Testing Instructions
public-api.wordpress.com
, and update theget_view
function in thewp-content/lib/home/views.php
file to return another view. You could use the following snippet as an example:wp-content/lib/home/views.php
file.Screenshots
[Mobile Portrait] BEFORE
[Mobile Portrait] AFTER
[Mobile Landscape] BEFORE
[Mobile Landscape] AFTER
[Mobile Task Card] BEFORE
[Mobile Task Card] AFTER
Pre-merge Checklist