From da2be1e2b3cd0edae84191ca690a9a3db3e4850e Mon Sep 17 00:00:00 2001 From: dyh_a Date: Thu, 29 Feb 2024 14:12:33 +0800 Subject: [PATCH] =?UTF-8?q?chore(playground):=20=E4=BF=AE=E5=A4=8D=20dev?= =?UTF-8?q?=20=E8=84=9A=E6=9C=AC=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/playground/src/index.tsx | 1 - .../src/layouts/App.layout.module.scss | 5 + .../playground/src/layouts/App.layout.tsx | 3 +- internal/playground/src/router.tsx | 177 +----------------- 4 files changed, 10 insertions(+), 176 deletions(-) diff --git a/internal/playground/src/index.tsx b/internal/playground/src/index.tsx index 19ae042..6523c2e 100644 --- a/internal/playground/src/index.tsx +++ b/internal/playground/src/index.tsx @@ -1,6 +1,5 @@ import { RouterProvider } from 'react-router-dom'; import ReactDOM from 'react-dom/client'; -import '@pkg/components/index.scss'; import { router } from './router'; import React from 'react'; import './index.css'; diff --git a/internal/playground/src/layouts/App.layout.module.scss b/internal/playground/src/layouts/App.layout.module.scss index 551385b..9bf7bc2 100644 --- a/internal/playground/src/layouts/App.layout.module.scss +++ b/internal/playground/src/layouts/App.layout.module.scss @@ -12,6 +12,10 @@ $h: 60px; line-height: $h; background-color: var(--aside-bg-color); } +.body { + flex: 1; + display: flex; +} .aside { $w: 230px; @@ -47,5 +51,6 @@ $h: 60px; overflow-y: auto; padding: 20px; height: 100%; + flex: 1; box-sizing: border-box; } diff --git a/internal/playground/src/layouts/App.layout.tsx b/internal/playground/src/layouts/App.layout.tsx index c1b1138..fcfe793 100644 --- a/internal/playground/src/layouts/App.layout.tsx +++ b/internal/playground/src/layouts/App.layout.tsx @@ -19,8 +19,7 @@ export function AppLayout(): JSX.Element { - -
+