Docking action bar on top menu bar (#1119)

* Teleport when docked

* Docking logic

* Remove unnecessary v-show

* Docked panel style

* Drop zone highlight

* Rename test

* Add playwright test
This commit is contained in:
Chenlei Hu
2024-10-05 14:06:29 -04:00
committed by GitHub
parent 9c118c8e37
commit ad55722662
5 changed files with 112 additions and 18 deletions

View File

@@ -9,6 +9,11 @@ export class ComfyActionbar {
this.root = page.locator('.actionbar')
this.queueButton = new ComfyQueueButton(this)
}
async isDocked() {
const className = await this.root.getAttribute('class')
return className?.includes('is-docked') ?? false
}
}
class ComfyQueueButton {