@@ -49,7 +49,7 @@ const Sider: React.FC = () => {
4949 return (
5050 < HashRouter >
5151 < SiderGuide ref = { guideRef } />
52- < Layout . Sider className = "uno-h-full" collapsed = { collapsed } width = { 170 } >
52+ < Layout . Sider collapsed = { collapsed } width = { 170 } >
5353 < div className = "uno-flex uno-flex-col uno-justify-between uno-h-full" >
5454 < Menu style = { { width : "100%" } } selectedKeys = { [ menuSelect ] } selectable onClickMenuItem = { handleMenuClick } >
5555 < CustomLink to = "/" >
@@ -160,23 +160,25 @@ const Sider: React.FC = () => {
160160 style = { {
161161 borderLeft : "1px solid var(--color-bg-5)" ,
162162 overflow : "hidden" ,
163- padding : 10 ,
164- height : "100% " ,
163+ padding : 0 ,
164+ height : "auto " ,
165165 boxSizing : "border-box" ,
166166 position : "relative" ,
167167 } }
168168 >
169- < Routes >
170- < Route index element = { < ScriptList /> } />
171- < Route path = "/script/editor" >
172- < Route path = ":uuid" element = { < ScriptEditor /> } />
173- < Route path = "" element = { < ScriptEditor /> } />
174- </ Route >
175- < Route path = "/subscribe" element = { < SubscribeList /> } />
176- < Route path = "/logger" element = { < Logger /> } />
177- < Route path = "/tools" element = { < Tools /> } />
178- < Route path = "/setting" element = { < Setting /> } />
179- </ Routes >
169+ < div className = "uno-absolute uno-inset-0 uno-m-[10px]" >
170+ < Routes >
171+ < Route index element = { < ScriptList /> } />
172+ < Route path = "/script/editor" >
173+ < Route path = ":uuid" element = { < ScriptEditor /> } />
174+ < Route path = "" element = { < ScriptEditor /> } />
175+ </ Route >
176+ < Route path = "/subscribe" element = { < SubscribeList /> } />
177+ < Route path = "/logger" element = { < Logger /> } />
178+ < Route path = "/tools" element = { < Tools /> } />
179+ < Route path = "/setting" element = { < Setting /> } />
180+ </ Routes >
181+ </ div >
180182 </ Layout . Content >
181183 </ HashRouter >
182184 ) ;
0 commit comments