Skip to content

Commit

Permalink
AI Featured Image: fix scrollbar on smaller screens (#36963)
Browse files Browse the repository at this point in the history
* Allow modal to grow up to 90% of the available height on medium to big screens

* changelog
  • Loading branch information
lhkowalski authored Apr 17, 2024
1 parent 236ac36 commit f35bbd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

AI Featured Image: remove scrollbar on smaller screens.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function AiAssistantModal( {
title?: string;
} ) {
return (
<Modal __experimentalHideHeader={ hideHeader }>
<Modal __experimentalHideHeader={ hideHeader } className="ai-assistant-modal">
<div className="ai-assistant-modal__content">
<ModalHeader requestingState={ requestingState } onClose={ handleClose } title={ title } />
<hr className="ai-assistant-modal__divider" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.ai-assistant-modal {
@media (min-width: 960px) {
max-height: 90%;
}

&__content {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit f35bbd3

Please sign in to comment.