diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/fonts-grid.js b/packages/edit-site/src/components/global-styles/font-library-modal/fonts-grid.js index 55e7a8a5cf393..9700831a7adef 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/fonts-grid.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/fonts-grid.js @@ -42,9 +42,13 @@ function FontsGrid( { title, children, pageSize = 32 } ) {
{ items.map( ( child, i ) => { if ( i === itemsLimit - 1 ) { - return
{ child }
; + return ( +
+ { child } +
+ ); } - return child; + return
{ child }
; } ) }
diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/style.scss b/packages/edit-site/src/components/global-styles/font-library-modal/style.scss index d026563d3b73e..99599d179f019 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/style.scss +++ b/packages/edit-site/src/components/global-styles/font-library-modal/style.scss @@ -51,6 +51,7 @@ .font-library-modal__font-card { border: 1px solid #e5e5e5; + width: 100%; height: auto; padding: 1rem; margin-top: -1px; /* To collapse the margin with the previous element */