Skip to content

Commit

Permalink
Font Library: fix modal width on mobile viewport (#54518)
Browse files Browse the repository at this point in the history
* Font Library: fix modal width on mobile viewport

* Don't use internal selector

* Fix typo
  • Loading branch information
t-hamano authored and mikachan committed Sep 25, 2023
1 parent bbdcba0 commit 065bccb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ function FontLibraryModal( {
<Modal
title={ __( 'Fonts' ) }
onRequestClose={ onRequestClose }
isFullScreen={ true }
isFullScreen
className="font-library-modal"
style={ { width: '65vw' } }
>
<TabPanel
className="font-library-modal__tab-panel"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.font-library-modal {
// @todo: If a new prop is added to the Modal component that constrains
// the content width, we should use that prop instead of this style.
// see https://github.com/WordPress/gutenberg/issues/54471.
&.font-library-modal {

@include break-medium() {
width: 65vw;
}
}

.components-modal__header {
border-bottom: none;
}
Expand Down

0 comments on commit 065bccb

Please sign in to comment.