File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1034,13 +1034,20 @@ export default function Layout(props: ParentProps) {
10341034 < div class = "flex-1 min-h-0 flex" >
10351035 < div
10361036 classList = { {
1037- "hidden xl:flex" : true ,
1038- "relative @container w-12 pb-5 shrink-0 bg-background-base" : true ,
1039- "flex-col gap-5.5 items-start self-stretch justify-between" : true ,
1040- "border-r border-border-weak-base contain-strict" : true ,
1037+ "hidden xl:block" : true ,
1038+ "relative shrink-0" : true ,
10411039 } }
1042- style = { { width : layout . sidebar . opened ( ) ? `${ layout . sidebar . width ( ) } px` : undefined } }
1040+ style = { { width : layout . sidebar . opened ( ) ? `${ layout . sidebar . width ( ) } px` : "48px" } }
10431041 >
1042+ < div
1043+ classList = { {
1044+ "@container w-full h-full pb-5 bg-background-base" : true ,
1045+ "flex flex-col gap-5.5 items-start self-stretch justify-between" : true ,
1046+ "border-r border-border-weak-base contain-strict" : true ,
1047+ } }
1048+ >
1049+ < SidebarContent />
1050+ </ div >
10441051 < Show when = { layout . sidebar . opened ( ) } >
10451052 < ResizeHandle
10461053 direction = "horizontal"
@@ -1052,7 +1059,6 @@ export default function Layout(props: ParentProps) {
10521059 onCollapse = { layout . sidebar . close }
10531060 />
10541061 </ Show >
1055- < SidebarContent />
10561062 </ div >
10571063 < div class = "xl:hidden" >
10581064 < div
Original file line number Diff line number Diff line change 22 position : absolute;
33 z-index : 10 ;
44
5+ & ::after {
6+ content : "" ;
7+ position : absolute;
8+ background-color : var (--color-border-strong-base );
9+ opacity : 0 ;
10+ transition : opacity 0.15s ease-in-out;
11+ border-radius : 2px ;
12+ }
13+
14+ & : hover ::after ,
15+ & : active ::after {
16+ opacity : 1 ;
17+ }
18+
519 & [data-direction = "horizontal" ] {
620 inset-block : 0 ;
721 inset-inline-end : 0 ;
822 width : 8px ;
923 transform : translateX (50% );
1024 cursor : ew-resize;
25+
26+ & ::after {
27+ width : 3px ;
28+ inset-block : 0 ;
29+ inset-inline-start : 50% ;
30+ transform : translateX (-50% );
31+ }
1132 }
1233
1334 & [data-direction = "vertical" ] {
1637 height : 8px ;
1738 transform : translateY (-50% );
1839 cursor : ns-resize;
40+
41+ & ::after {
42+ height : 3px ;
43+ inset-inline : 0 ;
44+ inset-block-start : 50% ;
45+ transform : translateY (-50% );
46+ }
1947 }
2048}
You can’t perform that action at this time.
0 commit comments