diff --git a/projects/plugins/protect/src/js/routes/scan/index.jsx b/projects/plugins/protect/src/js/routes/scan/index.jsx index c56ae3c747f3e..aa1aea5581076 100644 --- a/projects/plugins/protect/src/js/routes/scan/index.jsx +++ b/projects/plugins/protect/src/js/routes/scan/index.jsx @@ -83,14 +83,14 @@ const ScanPage = () => { ) } { !! status && ! isScanInProgress( status ) && hasPlan && ( ) } diff --git a/projects/plugins/protect/src/js/routes/scan/scan-admin-section-hero.tsx b/projects/plugins/protect/src/js/routes/scan/scan-admin-section-hero.tsx index 00215079d3fdf..f7ea5aa7305d0 100644 --- a/projects/plugins/protect/src/js/routes/scan/scan-admin-section-hero.tsx +++ b/projects/plugins/protect/src/js/routes/scan/scan-admin-section-hero.tsx @@ -107,7 +107,7 @@ const ScanAdminSectionHero: React.FC = () => { return ( - + { lastCheckedLocalTimestamp ? sprintf( // translators: %s: date and time of the last scan @@ -118,7 +118,7 @@ const ScanAdminSectionHero: React.FC = () => { 0 ? 'error' : 'success' }> @@ -157,11 +157,8 @@ const ScanAdminSectionHero: React.FC = () => { ) } { fixableList.length > 0 && ( <> - - + + { sprintf( /* translators: Translates to Show auto fixers $s: Number of fixable threats. */ __( 'Show auto fixers (%s)', 'jetpack-protect' ), @@ -171,7 +168,7 @@ const ScanAdminSectionHero: React.FC = () => { > diff --git a/projects/plugins/protect/src/js/routes/scan/styles.module.scss b/projects/plugins/protect/src/js/routes/scan/styles.module.scss index 5806ca5353863..c9d20d8928acd 100644 --- a/projects/plugins/protect/src/js/routes/scan/styles.module.scss +++ b/projects/plugins/protect/src/js/routes/scan/styles.module.scss @@ -4,6 +4,7 @@ .auto-fixers { margin-top: calc( var( --spacing-base ) * 4 ); // 32px + width: fit-content; } .scan-results-container { @@ -22,3 +23,7 @@ display: none; } } + +.last-checked { + width: fit-content; +} \ No newline at end of file