Skip to content

Commit

Permalink
Fix email upsell page styles in site context
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 authored and Imran Hossain committed Jan 9, 2025
1 parent c8dd5fe commit dedfef6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/my-sites/email/email-management/email-home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const EmailHome = ( props: EmailManagementHomeProps ) => {
return canCurrentUser( state, selectedSite.ID, 'manage_options' );
} );
const hasSitesLoaded = useSelector( hasLoadedSites );
const isAllDomainManagementContext = context === 'domains';
const isAllDomainManagementContext = context === 'domains' || context === 'hosting-overview';

const addEmailForwardMutationActive = useAddEmailForwardMutationIsLoading();

Expand Down Expand Up @@ -155,7 +155,7 @@ const EmailHome = ( props: EmailManagementHomeProps ) => {
selectedEmailProviderSlug={ selectedEmailProviderSlug }
selectedIntervalLength={ selectedIntervalLength }
source={ source }
hideNavigation={ isAllDomainManagementContext }
hideNavigation={ isAllDomainManagementContext || isInHostingOverview }
/>
);
}
Expand Down
9 changes: 8 additions & 1 deletion client/sites/components/dotcom-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
padding-right: 0;
overflow-y: initial;
max-height: initial;
max-width: 1400px;
width: 100%;
}

Expand Down Expand Up @@ -313,6 +312,14 @@
}
}

.wpcom-site .hosting-dashboard-layout.sites-dashboard:not(.domains-overview) .site-preview-pane {
.hosting-dashboard-item-view__content {
> * {
max-width: 1400px;
}
}
}

// Use flexbox to structure of fly-out panel.
.wpcom-site .main.hosting-dashboard-layout.sites-dashboard.sites-dashboard__layout:not(.preview-hidden) {
&.hosting-dashboard-layout,
Expand Down

0 comments on commit dedfef6

Please sign in to comment.