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
Hosting config: Use two equal columns #90592
Conversation
The hosting config cards have been re-sorted into columns and both columns are now displayed with equal widths.
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~108 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. 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. |
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 great!
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.
Unfortunately this breaks the existing page (flags=-layout/dotcom-nav-redesign-v2
) which uses narrower page width. The section cards look too narrow:
Perhaps we should also use full-width page for the existing page? We're gonna launch the feature soon anyway. 😄
--- a/client/my-sites/hosting/main.js
+++ b/client/my-sites/hosting/main.js
@@ -310,7 +310,7 @@ const Hosting = ( props ) => {
const banner = shouldShowUpgradeBanner ? getUpgradeBanner() : getAtomicActivationNotice();
return (
- <Main wideLayout className="hosting">
+ <Main fullWidthLayout className="hosting">
{ ! isLoadingSftpData && <ScrollToAnchorOnMount offset={ HEADING_OFFSET } /> }
<PageViewTracker path="/hosting-config/:site" title="Hosting" />
<DocumentHead title={ translate( 'Hosting' ) } />
@fushar could you explain a bit more how the changes breaks the layout? The columns are narrower, but I didn't see anything breaking.
|
Oops sorry, I meant it looks weird (to me) that we are using two-column layout with narrow page width. But you're right that nothing in that page breaks. Maybe I'm just not used to seeing hosting config page that way 🙈 Now I believe this PR is fine. |
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.
Updated the code using CSS grid, give it a look 🙂 |
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.
Thanks, looking perfect now!
client/my-sites/hosting/main.js
Outdated
<SidebarCards | ||
hasStagingSitesFeature={ hasStagingSitesFeature } | ||
isAdvancedHostingDisabled={ ! hasSftpFeature || ! isSiteAtomic } | ||
isBasicHostingDisabled={ ! hasAtomicFeature || ! isSiteAtomic } |
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 believe this is the only prop needed for <SidebarCards />
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! Forgot to remove it in the cleanup.
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 |
LGTM. Thanks folks :) |
Related to https://github.com/Automattic/dotcom-forge/issues/7078
Proposed Changes
The hosting config cards have been re-sorted into columns and both columns are now displayed with equal widths.
Testing Instructions
Pre-merge Checklist