From 204f862917e9a9014e47a475d6c49cc33d5a6d5e Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 20 Jun 2024 15:27:54 -0400 Subject: fix layout for desktop --- src/components/Layout.tsx | 2 +- src/index.css | 31 +++++++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 9abfdf0..83aa172 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -27,7 +27,7 @@ export default function Layout ({userData}: userData) return ( <>
-
+
diff --git a/src/index.css b/src/index.css index 153686f..1a84e98 100644 --- a/src/index.css +++ b/src/index.css @@ -29,23 +29,26 @@ } } -.sidebarInit { - left: -16rem; -} +@media (max-width: 768px) +{ + .sidebarInit { + left: -16rem; + } -.sidebarOpen { - animation-name: sidebar-enter; - left: 0; -} + .sidebarOpen { + animation-name: sidebar-enter; + left: 0; + } -.sidebarClosed { - animation-name: sidebar-exit; - left: -16rem; -} + .sidebarClosed { + animation-name: sidebar-exit; + left: -16rem; + } -#sidebar { - animation-duration: 0.5s; - animation-iteration-count: 1; + #sidebar { + animation-duration: 0.5s; + animation-iteration-count: 1; + } } .gameCard { -- cgit v1.2.3