From 02b280c4b6a10928705d3166490f383ebc6a3033 Mon Sep 17 00:00:00 2001 From: Vishnu Vardhan Date: Mon, 22 Sep 2025 17:48:14 +0530 Subject: [PATCH] Minor UI changes for initial release --- packages/app/src/app.ts | 2 +- packages/app/src/components/workbench.ts | 15 ++++++----- packages/app/src/components/workbench/logs.ts | 14 +++++----- packages/app/src/utils/DragController.ts | 26 +++++++++++++++++-- packages/service/src/constants.ts | 2 +- 5 files changed, 40 insertions(+), 19 deletions(-) diff --git a/packages/app/src/app.ts b/packages/app/src/app.ts index 6fe4804..7296fae 100644 --- a/packages/app/src/app.ts +++ b/packages/app/src/app.ts @@ -11,7 +11,7 @@ import './components/sidebar.js' import './components/workbench.js' import './components/onboarding/start.js' -const SIDEBAR_MIN_WIDTH = 200 +const SIDEBAR_MIN_WIDTH = 250 @customElement('wdio-devtools') export class WebdriverIODevtoolsApplication extends Element { diff --git a/packages/app/src/components/workbench.ts b/packages/app/src/components/workbench.ts index e4f40b6..19bb870 100644 --- a/packages/app/src/components/workbench.ts +++ b/packages/app/src/components/workbench.ts @@ -100,14 +100,14 @@ export class DevtoolsWorkbench extends Element { return `flex:0 0 ${paneHeight}px; height:${paneHeight}px; max-height:70vh; min-height:0;` })() - const sidebarStyle = !this.#workbenchSidebarCollapsed - ? (() => { + const sidebarStyle = this.#workbenchSidebarCollapsed + ? 'width:0; flex:0 0 0; overflow:hidden;' + : (() => { const pos = this.#dragHorizontal.getPosition() const m = pos.match(/flex-basis:\s*([\d.]+)px/) const w = m ? m[1] : MIN_METATAB_WIDTH return `${pos}; flex:0 0 auto; min-width:${w}px; max-width:${w}px;` })() - : '' return html`
@@ -129,7 +129,7 @@ export class DevtoolsWorkbench extends Element { html` ` @@ -141,8 +141,8 @@ export class DevtoolsWorkbench extends Element {
- ${!this.#toolbarCollapsed ? this.#dragVertical.getSlider('z-20') : nothing} - + ${!this.#toolbarCollapsed ? this.#dragVertical.getSlider('z-[999] -mt-[5px] pointer-events-auto') : nothing} + @@ -165,7 +165,8 @@ export class DevtoolsWorkbench extends Element { html` ` diff --git a/packages/app/src/components/workbench/logs.ts b/packages/app/src/components/workbench/logs.ts index 0db39ff..945f2db 100644 --- a/packages/app/src/components/workbench/logs.ts +++ b/packages/app/src/components/workbench/logs.ts @@ -76,14 +76,12 @@ export class DevtoolsSource extends Element { + .list="${(this.command.args || []).reduce((acc, val, i) => { + const def = this.#commandDefinition + const paramName = def?.parameters?.[i]?.name ?? i + acc[paramName] = val + return acc + }, {} as Record)}">