From 9d110d39b2120221ab837a58c52e67b759402690 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 28 Sep 2024 11:21:38 +0900 Subject: [PATCH] Make action bar draggable (#1035) * Basic draggable * Nowrap * Prevent double reset * Persist position * nit * nit * Window resize adjustment * Fix playwright test --- browser_tests/ComfyPage.ts | 7 ++- src/components/appMenu/AppMenu.vue | 96 +++++++++++++++++++++++++++--- 2 files changed, 91 insertions(+), 12 deletions(-) diff --git a/browser_tests/ComfyPage.ts b/browser_tests/ComfyPage.ts index 93ce93550..7426b082e 100644 --- a/browser_tests/ComfyPage.ts +++ b/browser_tests/ComfyPage.ts @@ -640,9 +640,10 @@ export class ComfyPage { y: 645 } }) - await page.locator('input[type="text"]').click() - await page.locator('input[type="text"]').fill('128') - await page.locator('input[type="text"]').press('Enter') + const dialogInput = page.locator('.graphdialog input[type="text"]') + await dialogInput.click() + await dialogInput.fill('128') + await dialogInput.press('Enter') await this.nextFrame() } diff --git a/src/components/appMenu/AppMenu.vue b/src/components/appMenu/AppMenu.vue index 4af2cd841..ac5c189c8 100644 --- a/src/components/appMenu/AppMenu.vue +++ b/src/components/appMenu/AppMenu.vue @@ -1,6 +1,13 @@