Skip to content

Commit

Permalink
Merge branch 'develop' into enhancement/#9951-rrm-module-settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-t committed Jan 13, 2025
2 parents fa54013 + 75c014a commit 9ba9b20
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
import { cloneDeep } from 'lodash';
import PropTypes from 'prop-types';
import classnames from 'classnames';

/**
* WordPress dependencies
Expand Down Expand Up @@ -148,7 +149,12 @@ export default function WPDashboardPopularPagesGA4( {

return (
/* TODO: decouple the styles from search-console class */
<div className="googlesitekit-search-console-widget">
<div
className={ classnames( 'googlesitekit-search-console-widget', {
'googlesitekit-search-console-widget--empty-data':
isGatheringData || ! rows?.length,
} ) }
>
<h3>
{ __( 'Top content over the last 28 days', 'google-site-kit' ) }
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,17 @@
}

&.googlesitekit-wp-dashboard-search_console_active_and_connected {
min-height: 1080px;
min-height: 650px;

@media (max-width: $bp-mobileOnly) {
min-height: 870px;
.googlesitekit-search-console-widget {

&:not(.googlesitekit-search-console-widget--empty-data) {
min-height: 430px;

@media (max-width: $bp-mobileOnly) {
min-height: 220px;
}
}
}
}
}
Expand Down

0 comments on commit 9ba9b20

Please sign in to comment.