@@ -35,7 +35,6 @@ export class DevtoolsWorkbench extends Element {
3535 color: var(--vscode-foreground);
3636 background-color: var(--vscode-editor-background);
3737 position: relative;
38- margin-left: 10px;
3938 }
4039 ` ]
4140
@@ -92,7 +91,7 @@ export class DevtoolsWorkbench extends Element {
9291 ? ( ( ) => {
9392 const pos = this . #dragHorizontal. getPosition ( ) // e.g. "flex-basis: 300px;"
9493 const m = pos . match ( / f l e x - b a s i s : \s * ( [ \d . ] + ) p x / )
95- const w = m ? m [ 1 ] : '260'
94+ const w = m ? m [ 1 ] : MIN_METATAB_WIDTH
9695 // Keep drag-resize (flex-basis) but stop auto-expansion
9796 return `${ pos } ; flex:0 0 auto; min-width:${ w } px; max-width:${ w } px;`
9897 } ) ( )
@@ -105,9 +104,7 @@ export class DevtoolsWorkbench extends Element {
105104 < wdio-devtools-actions > </ wdio-devtools-actions >
106105 </ wdio-devtools-tab >
107106 < wdio-devtools-tab label ="Metadata ">
108- < div class ="pl-[3px] ">
109- < wdio-devtools-metadata > </ wdio-devtools-metadata >
110- </ div >
107+ < wdio-devtools-metadata > </ wdio-devtools-metadata >
111108 </ wdio-devtools-tab >
112109 < nav class ="ml-auto " slot ="actions ">
113110 < button @click ="${ ( ) => this . #toggle( 'workbenchSidebar' ) } " class ="flex h-10 w-10 items-center justify-center pointer ml-auto hover:bg-toolbarHoverBackground ">
@@ -129,7 +126,7 @@ export class DevtoolsWorkbench extends Element {
129126 < section class ="basis-auto text-gray-500 flex items-center justify-center flex-grow ">
130127 < wdio-devtools-browser > </ wdio-devtools-browser >
131128 </ section >
132- ${ this . #dragHorizontal . getSlider ( this . # workbenchSidebarCollapsed ? 'hidden' : this . #toolbarCollapsed ? 'h-full' : 'h-[70%]' ) }
129+ ${ ! this . #workbenchSidebarCollapsed ? this . #dragHorizontal . getSlider ( ) : nothing }
133130 </ section >
134131 < wdio-devtools-tabs cacheId ="activeWorkbenchTab " class ="border-t-[1px] border-t-panelBorder ${ this . #toolbarCollapsed ? 'hidden' : '' } ">
135132 < wdio-devtools-tab label ="Source ">
@@ -160,7 +157,7 @@ export class DevtoolsWorkbench extends Element {
160157 `
161158 : nothing
162159 }
163- ${ this . #dragVertical. getSlider ( this . #toolbarCollapsed ? 'hidden' : '' ) }
160+ ${ ! this . #toolbarCollapsed ? this . # dragVertical. getSlider ( ) : nothing }
164161 `
165162 }
166163}
0 commit comments