Skip to content

Commit 8448a0b

Browse files
fix: Small design details (#2010)
Co-authored-by: Zeh Fernandes <[email protected]>
1 parent 8fd7409 commit 8448a0b

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.changeset/itchy-coins-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
Improved classes, better borders on table, improved scollbar colors

packages/react-email/src/app/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
html {
6+
color-scheme: dark;
7+
}
8+
59
.popup-open iframe {
610
pointer-events: none;
711
}

packages/react-email/src/app/preview/[...slug]/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Preview = ({ emailTitle, className, ...props }: PreviewProps) => {
113113
<div
114114
{...props}
115115
className={cn(
116-
'h-[calc(100%-3.5rem-2.375rem)] will-change-height flex p-4 transition-all duration-300',
116+
'h-[calc(100%-3.5rem-2.375rem)] will-change-[height] flex p-4 transition-[height] duration-300',
117117
activeView === 'preview' && 'bg-gray-200',
118118
toolbarToggled && 'h-[calc(100%-3.5rem-13rem)]',
119119
className,

packages/react-email/src/components/shell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const Shell = ({ children, currentEmailOpenSlug }: ShellProps) => {
7878
</React.Suspense>
7979
<main
8080
className={cn(
81-
'inline-block relative overflow-hidden will-change-width',
81+
'inline-block relative overflow-hidden will-change-[width]',
8282
'w-full h-full',
8383
'[transition:width_0.2s_ease-in-out,_transform_0.2s_ease-in-out]',
8484
sidebarToggled && 'lg:w-[calc(100%-16rem)]',

packages/react-email/src/components/toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const ToolbarInner = ({
123123
data-toggled={toggled}
124124
className={cn(
125125
'absolute bottom-0 left-0 right-0',
126-
'bg-black group/toolbar text-xs text-slate-11 h-52 transition-transform',
126+
'bg-black border-t border-slate-6 group/toolbar text-xs text-slate-11 h-52 transition-transform',
127127
'data-[toggled=false]:translate-y-[10.625rem]',
128128
)}
129129
>

0 commit comments

Comments
 (0)