File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div v-if =" isDesktop" class =" asider" :class =" { 'app-menu-dark': appStore.menuDark }"
33 :style =" appStore.menuDark ? appStore.themeCSSVar : undefined" >
4- <Logo :collapsed =" appStore.menuCollapse" ></Logo >
5- <a-layout-sider class =" menu" collapsible breakpoint =" xl" hide-trigger :width =" 225"
4+ <a-layout-sider class =" menu" collapsible breakpoint =" xl" hide-trigger :width =" 230"
65 :collapsed =" appStore.menuCollapse" @collapse =" handleCollapse" >
7- <a-scrollbar outer-class =" h-full" style =" height : 100% ; overflow : auto " >
6+ <Logo :collapsed =" appStore.menuCollapse" ></Logo >
7+ <a-scrollbar outer-class =" menu-scroll-view" style =" height : 100% ; overflow : auto " >
88 <Menu ></Menu >
99 </a-scrollbar >
1010 </a-layout-sider >
@@ -47,6 +47,8 @@ const handleCollapse = (isCollapsed: boolean) => {
4747
4848:deep(.arco-layout-sider-children ) {
4949 overflow : hidden ;
50+ display : flex ;
51+ flex-direction : column ;
5052}
5153
5254.asider {
@@ -58,6 +60,11 @@ const handleCollapse = (isCollapsed: boolean) => {
5860 color : var (--color-text-1 );
5961 background-color : var (--color-bg-1 );
6062
63+ .menu-scroll-view {
64+ flex : 1 ;
65+ overflow : hidden ;
66+ }
67+
6168 .menu {
6269 flex : 1 ;
6370 overflow : hidden ;
Original file line number Diff line number Diff line change 22 <section class =" system-logo" :class =" { collapsed: props.collapsed }" @click =" toHome" >
33 <img v-if =" logo" class =" logo" :src =" logo" alt =" logo" />
44 <img v-else class =" logo" src =" /logo.svg" alt =" logo" />
5- <span class =" system-name" >{{ title }}</span >
5+ <span class =" system-name gi_line_1 " >{{ title }}</span >
66 </section >
77</template >
88
@@ -39,6 +39,7 @@ const toHome = () => {
3939 cursor : pointer ;
4040 user-select : none ;
4141 box-sizing : border-box ;
42+
4243 & .collapsed {
4344 padding : 0 ;
4445 display : flex ;
@@ -48,6 +49,7 @@ const toHome = () => {
4849 display : none ;
4950 }
5051 }
52+
5153 .logo {
5254 width : 32px ;
5355 height : 32px ;
@@ -56,10 +58,12 @@ const toHome = () => {
5658 overflow : hidden ;
5759 flex-shrink : 0 ;
5860 }
61+
5962 .system-name {
6063 padding-left : 6px ;
6164 white-space : nowrap ;
6265 transition : color 0.3s ;
66+
6367 & :hover {
6468 color : $color-theme !important ;
6569 cursor : pointer ;
You can’t perform that action at this time.
0 commit comments