Skip to content

Commit 6d4ac23

Browse files
committed
fix(react-email): Padding on the file tree
1 parent 932cc60 commit 6d4ac23

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.changeset/loud-clouds-wink.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+
Fix padding on the file tree

.changeset/pre.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,5 @@
4141
"@react-email/text": "0.0.11",
4242
"tsconfig": "0.0.0"
4343
},
44-
"changesets": [
45-
"empty-rivers-laugh"
46-
]
44+
"changesets": ["empty-rivers-laugh"]
4745
}

packages/react-email/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"url": "https://github.com/resend/react-email.git",
1919
"directory": "packages/react-email"
2020
},
21-
"keywords": [
22-
"react",
23-
"email"
24-
],
21+
"keywords": ["react", "email"],
2522
"engines": {
2623
"node": ">=18.0.0"
2724
},

packages/react-email/src/components/sidebar/file-tree-directory-children.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const FileTreeDirectoryChildren = (props: {
2323
{props.open ? (
2424
<Collapsible.Content
2525
asChild
26-
className="relative data-[root=true]:mt-2 overflow-y-hidden pl-1"
26+
className="relative data-[root=true]:mt-2 overflow-y-hidden"
2727
forceMount
2828
>
2929
<motion.div
@@ -34,7 +34,7 @@ export const FileTreeDirectoryChildren = (props: {
3434
{props.isRoot ? null : (
3535
<div className="line absolute left-2.5 h-full w-px bg-slate-6" />
3636
)}
37-
<div className="data-[root=true]:py-2 flex flex-col truncate">
37+
<div className="flex flex-col truncate">
3838
<LayoutGroup id="sidebar">
3939
{props.emailsDirectoryMetadata.subDirectories.map(
4040
(subDirectory) => (

0 commit comments

Comments
 (0)