From 99f3160aa26dde331999c0397547ae154e60d7c8 Mon Sep 17 00:00:00 2001 From: Dogtiti <499960698@qq.com> Date: Wed, 31 Jul 2024 22:10:24 +0800 Subject: [PATCH] fix: sidebar title style --- app/components/home.module.scss | 12 +++++++++--- app/components/sidebar.tsx | 8 +++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/components/home.module.scss b/app/components/home.module.scss index b836d2bec93..b31334568dd 100644 --- a/app/components/home.module.scss +++ b/app/components/home.module.scss @@ -137,12 +137,18 @@ position: relative; padding-top: 20px; padding-bottom: 20px; + display: flex; + justify-content: space-between; + align-items: center; } .sidebar-logo { - position: absolute; - right: 0; - bottom: 18px; + display: inline-flex; +} + +.sidebar-title-container { + display: inline-flex; + flex-direction: column; } .sidebar-title { diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index dbcf7c5db41..d8def056e52 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -171,10 +171,12 @@ export function SideBarHeader(props: { return (
-
- {title} +
+
+ {title} +
+
{subTitle}
-
{subTitle}
{logo}
{children}