react-email 2.0.0-canary.2 → 2.0.0-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/index.js
CHANGED
|
@@ -252,7 +252,7 @@ var import_extra_typings = require("@commander-js/extra-typings");
|
|
|
252
252
|
// package.json
|
|
253
253
|
var package_default = {
|
|
254
254
|
name: "react-email",
|
|
255
|
-
version: "2.0.0-canary.
|
|
255
|
+
version: "2.0.0-canary.3",
|
|
256
256
|
description: "A live preview of your emails right in your browser.",
|
|
257
257
|
bin: {
|
|
258
258
|
email: "./cli/index.js"
|
package/cli/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { program } from "@commander-js/extra-typings";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "react-email",
|
|
9
|
-
version: "2.0.0-canary.
|
|
9
|
+
version: "2.0.0-canary.3",
|
|
10
10
|
description: "A live preview of your emails right in your browser.",
|
|
11
11
|
bin: {
|
|
12
12
|
email: "./cli/index.js"
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ export const SidebarDirectoryChildren = (props: {
|
|
|
66
66
|
>
|
|
67
67
|
<motion.span
|
|
68
68
|
className={cn(
|
|
69
|
-
'text-[14px] flex items-center font-medium
|
|
69
|
+
'text-[14px] flex items-center align-middle font-medium pl-4 h-8 max-w-full rounded-md text-slate-11 relative transition ease-in-out duration-200',
|
|
70
70
|
{
|
|
71
71
|
'text-cyan-11': isCurrentPage,
|
|
72
72
|
'hover:text-slate-12':
|
|
@@ -85,8 +85,8 @@ export const SidebarDirectoryChildren = (props: {
|
|
|
85
85
|
<div className="bg-cyan-11 w-px absolute top-1 left-2.5 h-6" />
|
|
86
86
|
</motion.span>
|
|
87
87
|
) : null}
|
|
88
|
-
<IconFile height="24" width="24" />
|
|
89
|
-
{emailFilename}
|
|
88
|
+
<IconFile className="absolute left-4 w-[24px] h-[24px]" height="24" width="24" />
|
|
89
|
+
<span className="truncate pl-8">{emailFilename}</span>
|
|
90
90
|
</motion.span>
|
|
91
91
|
</Link>
|
|
92
92
|
);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useEmails } from '../../contexts/emails';
|
|
5
|
+
import { cn } from '../../utils';
|
|
5
6
|
import { SidebarDirectory } from './sidebar-directory';
|
|
6
7
|
|
|
7
8
|
type SidebarElement = React.ElementRef<'aside'>;
|
|
@@ -16,10 +17,10 @@ export const Sidebar = React.forwardRef<SidebarElement, Readonly<SidebarProps>>(
|
|
|
16
17
|
const { emailsDirectoryMetadata } = useEmails();
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
|
-
<aside className={className} ref={forwardedRef} {...props}>
|
|
20
|
-
<nav className="p-6 h-full
|
|
20
|
+
<aside className={cn('border-r border-slate-6', className)} ref={forwardedRef} {...props}>
|
|
21
|
+
<nav className="p-6 w-screen h-full md:w-full md:min-w-[275px] md:max-w-[275px] flex flex-col gap-4">
|
|
21
22
|
<SidebarDirectory
|
|
22
|
-
className="min-w-full w-
|
|
23
|
+
className="min-w-full w-full"
|
|
23
24
|
currentEmailOpenSlug={currentEmailOpenSlug}
|
|
24
25
|
emailsDirectoryMetadata={emailsDirectoryMetadata}
|
|
25
26
|
/>
|