Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
fix height and width preview on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed May 8, 2023
1 parent dccdde9 commit 1bdce35
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions assets/js/blocks/classic-template/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,19 @@ const Edit = ( {
}
text={ getButtonLabel() }
>
{ isPopoverOpen && (
{ true && (
<Popover
resize={ false }
placement="right-end"
shift={ true }
>
<div
style={ {
width: '600px',
height: 'fit-content',
minWidth: '250px',
width: '250px',
maxWidth: '250px',
minHeight: '300px',
height: '300px',
maxHeight: '300px',
cursor: 'pointer',
} }
>
Expand All @@ -218,7 +221,7 @@ const Edit = ( {
viewportWidth={ 1200 }
additionalStyles={ [
{
css: 'body { padding: 20px !important}',
css: 'body { padding: 20px !important; height: fit-content !important; overflow:hidden}',
},
] }
/>
Expand Down

0 comments on commit 1bdce35

Please sign in to comment.