Skip to content

Commit

Permalink
make the background around the iframe look like a canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Feb 7, 2025
1 parent 136b2b0 commit b291c2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react-email/src/app/preview/[...slug]/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const Preview = ({
>
{/* This relative is so that when there is any error the user can still switch between emails */}
<div
className="relative flex h-full pb-8"
className="relative flex h-full pb-8 bg-gray-200"
ref={(element) => {
const observer = new ResizeObserver((entry) => {
const [elementEntry] = entry;
Expand Down
8 changes: 4 additions & 4 deletions packages/react-email/src/components/resizable-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const ResizableWarpper = ({
role="slider"
tabIndex={0}
>
<div className="h-8 w-1 rounded-md bg-slate-8" />
<div className="h-8 w-1 rounded-md bg-black/30" />
</div>
<div
aria-label="resize-east"
Expand All @@ -135,7 +135,7 @@ export const ResizableWarpper = ({
role="slider"
tabIndex={0}
>
<div className="h-8 w-1 rounded-md bg-slate-8" />
<div className="h-8 w-1 rounded-md bg-black/30" />
</div>
<div
aria-label="resize-north"
Expand All @@ -151,7 +151,7 @@ export const ResizableWarpper = ({
role="slider"
tabIndex={0}
>
<div className="h-1 w-8 rounded-md bg-slate-8" />
<div className="h-1 w-8 rounded-md bg-black/30" />
</div>
<div
aria-label="resize-south"
Expand All @@ -167,7 +167,7 @@ export const ResizableWarpper = ({
role="slider"
tabIndex={0}
>
<div className="h-1 w-8 rounded-md bg-slate-8" />
<div className="h-1 w-8 rounded-md bg-black/30" />
</div>

<Slot ref={resizableRef}>{children}</Slot>
Expand Down

0 comments on commit b291c2b

Please sign in to comment.