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
@ -71,7 +71,7 @@ const AnnouncementBarPreview: React.FC<AnnouncementBarSettings> = ({announcement
|
||||
return (
|
||||
<IframeBuffering
|
||||
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}
|
||||
height='100%'
|
||||
parentClassName="relative h-full w-full"
|
||||
|
@ -105,7 +105,7 @@ const ThemePreview: React.FC<ThemePreviewProps> = ({settings,url}) => {
|
||||
return (
|
||||
<IframeBuffering
|
||||
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}
|
||||
height='100%'
|
||||
parentClassName="relative h-full w-full"
|
||||
|
Loading…
Reference in New Issue
Block a user