mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
52a28c0059
commit
2029a5846a
2 changed files with 5 additions and 2 deletions
|
@ -205,7 +205,7 @@ export const PreviewModalContent: React.FC<PreviewModalProps> = ({
|
|||
}
|
||||
|
||||
const containerClasses = clsx(
|
||||
'min-w-100 absolute inset-y-0 left-0 right-[400px] flex grow flex-col overflow-y-auto',
|
||||
'min-w-100 absolute inset-y-0 left-0 right-[400px] flex w-full grow flex-col overflow-y-auto',
|
||||
previewBgClass
|
||||
);
|
||||
|
||||
|
@ -275,7 +275,7 @@ export const PreviewModalContent: React.FC<PreviewModalProps> = ({
|
|||
hideXOnMobile
|
||||
>
|
||||
<div className='flex h-full grow'>
|
||||
<div className={`hidden grow flex-col [@media(min-width:801px)]:!visible [@media(min-width:801px)]:!flex ${previewBgColor === 'grey' ? 'bg-grey-50' : 'bg-white'}`}>
|
||||
<div className={`relative hidden grow flex-col [@media(min-width:801px)]:!visible [@media(min-width:801px)]:!flex ${previewBgColor === 'grey' ? 'bg-grey-50' : 'bg-white'}`}>
|
||||
{preview}
|
||||
</div>
|
||||
{sidebar &&
|
||||
|
|
|
@ -56,6 +56,9 @@ const PortalFrame: React.FC<PortalFrameProps> = ({href, onDestroyed, selectedTab
|
|||
if (portalParent === 'preview') {
|
||||
loaderClassNames = 'absolute z-50 mt-[-7%] flex h-screen items-center justify-center';
|
||||
loaderVisibility = 'invisible';
|
||||
} else if (portalParent === 'offers') {
|
||||
loaderClassNames = 'absolute z-50 flex w-full h-full items-center justify-center';
|
||||
loaderVisibility = 'invisible';
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue