mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added default background color to preview iframes (#19651)
fixes DES-88 - preview iframes should have default background as they simulate browser windows - transparent background causes unexpected inconsistency when themes don't have default background color set
This commit is contained in:
parent
a7f6713614
commit
612ea2f5f2
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ const AnnouncementBarPreview: React.FC<AnnouncementBarSettings> = ({announcement
|
||||||
return (
|
return (
|
||||||
<IframeBuffering
|
<IframeBuffering
|
||||||
addDelay={true}
|
addDelay={true}
|
||||||
className="absolute h-[110%] w-[110%] origin-top-left scale-[.90909] max-[1600px]:h-[130%] max-[1600px]:w-[130%] max-[1600px]:scale-[.76923]"
|
className="absolute h-[110%] w-[110%] origin-top-left scale-[.90909] bg-white max-[1600px]:h-[130%] max-[1600px]:w-[130%] max-[1600px]:scale-[.76923]"
|
||||||
generateContent={injectContentIntoIframe}
|
generateContent={injectContentIntoIframe}
|
||||||
height='100%'
|
height='100%'
|
||||||
parentClassName="relative h-full w-full"
|
parentClassName="relative h-full w-full"
|
||||||
|
|
|
@ -105,7 +105,7 @@ const ThemePreview: React.FC<ThemePreviewProps> = ({settings,url}) => {
|
||||||
return (
|
return (
|
||||||
<IframeBuffering
|
<IframeBuffering
|
||||||
addDelay={false}
|
addDelay={false}
|
||||||
className="absolute h-[110%] w-[110%] origin-top-left scale-[.90909] max-[1600px]:h-[130%] max-[1600px]:w-[130%] max-[1600px]:scale-[.76923]"
|
className="absolute h-[110%] w-[110%] origin-top-left scale-[.90909] bg-white max-[1600px]:h-[130%] max-[1600px]:w-[130%] max-[1600px]:scale-[.76923]"
|
||||||
generateContent={injectContentIntoIframe}
|
generateContent={injectContentIntoIframe}
|
||||||
height='100%'
|
height='100%'
|
||||||
parentClassName="relative h-full w-full"
|
parentClassName="relative h-full w-full"
|
||||||
|
|
Loading…
Add table
Reference in a new issue