Skip to content

Commit 41b7faa

Browse files
committed
refactor(v2,v3,v4)
1 parent 2437610 commit 41b7faa

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/v2/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Sidebar from "@/components/v2/sidebar";
33
import type { Metadata } from "next";
44

55
export const metadata: Metadata = {
6-
title: "Dashboard Layout V1",
6+
title: "Dashboard Layout V2",
77
description: "Generated by create next app",
88
};
99

app/v3/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Sidebar from "@/components/v3/sidebar";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Dashboard Layout V5",
5+
title: "Dashboard Layout V3",
66
description: "Generated by create next app",
77
};
88

app/v4/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import SidebarWrapper from "@/components/v4/sidebar-wrapper";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Dashboard Layout V6",
5+
title: "Dashboard Layout V4",
66
description: "Generated by create next app",
77
};
88

components/v3/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function Sidebar() {
4040
<div className="relative w-fit" ref={refOutside}>
4141
<CloseOpen isOpen={isOpen} setIsOpen={setIsOpen} />
4242
<div
43-
className={cn(styles.sidebarWithOpenClose, {
43+
className={cn(`${styles.sidebarWithOpenClose} !h-[calc(100vh-25px)] rounded-lg` , {
4444
[styles.sidebarWithOpenCloseActive]: !isOpen,
4545
})}
4646
>

styles/component/sidebar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
}
44

55
.sidebarWithOpenCloseActive {
6-
@apply !min-w-0 !w-0 !p-0 invisible -translate-x-full;
6+
@apply !min-w-0 !w-0 !p-0 scale-x-0 invisible -translate-x-full;
77
}

0 commit comments

Comments
 (0)