Skip to content

Commit e0b7efa

Browse files
authored
fix(preview-server): sidebar misalignment with topbar (#2667)
1 parent c58326e commit e0b7efa

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/kind-facts-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-email/preview-server": patch
3+
---
4+
5+
fix sidebar misalignment with the topbar

packages/preview-server/src/components/sidebar/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export const Sidebar = ({ className, currentEmailOpenSlug }: SidebarProps) => {
2424
<div className="flex w-full h-full overflow-hidden flex-col border-slate-6 border-r">
2525
<div
2626
className={clsx(
27-
'hidden min-h-[3.3125rem] flex-shrink items-center p-3 px-4 lg:flex',
27+
'hidden min-h-14 flex-shrink items-center py-2 px-3 lg:flex border-b border-slate-4',
2828
)}
2929
>
3030
<h2>
3131
<Logo />
3232
</h2>
3333
</div>
34-
<div className="relative grow w-full h-full overflow-y-auto overflow-x-hidden border-slate-4 border-t px-4 pb-3">
34+
<div className="relative grow w-full h-full overflow-y-auto overflow-x-hidden px-4 pb-3">
3535
<FileTree
3636
currentEmailOpenSlug={currentEmailOpenSlug}
3737
emailsDirectoryMetadata={emailsDirectoryMetadata}

0 commit comments

Comments
 (0)