@@ -100,14 +100,14 @@ export class DevtoolsWorkbench extends Element {
100100 return `flex:0 0 ${ paneHeight } px; height:${ paneHeight } px; max-height:70vh; min-height:0;`
101101 } ) ( )
102102
103- const sidebarStyle = ! this . #workbenchSidebarCollapsed
104- ? ( ( ) => {
103+ const sidebarStyle = this . #workbenchSidebarCollapsed
104+ ? 'width:0; flex:0 0 0; overflow:hidden;'
105+ : ( ( ) => {
105106 const pos = this . #dragHorizontal. getPosition ( )
106107 const m = pos . match ( / f l e x - b a s i s : \s * ( [ \d . ] + ) p x / )
107108 const w = m ? m [ 1 ] : MIN_METATAB_WIDTH
108109 return `${ pos } ; flex:0 0 auto; min-width:${ w } px; max-width:${ w } px;`
109110 } ) ( )
110- : ''
111111
112112 return html `
113113 < section data-horizontal-resizer-window class ="flex relative w-full ${ heightWorkbench } min-h-0 overflow-hidden " style ="${ styleWorkbench } ">
@@ -129,7 +129,7 @@ export class DevtoolsWorkbench extends Element {
129129 html `
130130 < button
131131 @click ="${ ( ) => this . #toggle( 'workbenchSidebar' ) } "
132- class ="absolute top-0 left-0 bg-sideBarBackground flex h-10 w-10 items-center justify-center cursor-pointer rounded-br- md hover:bg-toolbarHoverBackground border-r-[1px] border-r-panelBorder border-b-[1px] border-b -panelBorder ">
132+ class ="absolute top-2 left-2 bg-sideBarBackground flex h-10 w-10 items-center justify-center cursor-pointer rounded-md shadow hover:bg-toolbarHoverBackground border border-panelBorder ">
133133 < icon-mdi-arrow-collapse-right > </ icon-mdi-arrow-collapse-right >
134134 </ button >
135135 `
@@ -141,8 +141,8 @@ export class DevtoolsWorkbench extends Element {
141141 < wdio-devtools-browser > </ wdio-devtools-browser >
142142 </ section >
143143 </ section >
144- ${ ! this . #toolbarCollapsed ? this . #dragVertical. getSlider ( 'z-20 ' ) : nothing }
145- < wdio-devtools-tabs cacheId ="activeWorkbenchTab " class ="border-t-[1px] border-t-panelBorder ${ this . #toolbarCollapsed ? 'hidden' : '' } flex-1 min-h-0 ">
144+ ${ ! this . #toolbarCollapsed ? this . #dragVertical. getSlider ( 'z-[999] -mt-[5px] pointer-events-auto ' ) : nothing }
145+ < wdio-devtools-tabs cacheId ="activeWorkbenchTab " class ="relative z-10 border-t-[1px] border-t-panelBorder ${ this . #toolbarCollapsed ? 'hidden' : '' } flex-1 min-h-0 ">
146146 < wdio-devtools-tab label ="Source ">
147147 < wdio-devtools-source > </ wdio-devtools-source >
148148 </ wdio-devtools-tab >
@@ -165,7 +165,8 @@ export class DevtoolsWorkbench extends Element {
165165 html `
166166 < button
167167 @click ="${ ( ) => this . #toggle( 'toolbar' ) } "
168- class ="absolute right-0 bottom-0 bg-sideBarBackground flex h-10 w-10 items-center justify-center cursor-pointer rounded-tl-md hover:bg-toolbarHoverBackground border-t-[1px] border-t-panelBorder border-l-[1px] border-l-panelBorder ">
168+ class ="fixed z-[9999] right-2 bottom-2 bg-sideBarBackground flex h-10 w-10 items-center justify-center cursor-pointer rounded-md shadow
169+ hover:bg-toolbarHoverBackground border border-panelBorder ">
169170 < icon-mdi-arrow-collapse-up > </ icon-mdi-arrow-collapse-up >
170171 </ button >
171172 `
0 commit comments