From 967989494cfebf2af03a8d8476fdff9e0c6a8a85 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Wed, 17 May 2023 21:31:37 -0500 Subject: [PATCH] window object does weird things, rename root ID when used with (window as any).app, it uses the element with id #app instead --- index.html | 2 +- mobile/index.html | 2 +- src/App.svelte | 2 +- src/AppMobile.svelte | 1 - src/lib/components/ComfyApp.svelte | 6 ++-- src/lib/components/ComfyApp.ts | 2 +- .../components/gradio/gallery/Gallery.svelte | 8 ++--- .../gradio/image/StaticImage.svelte | 8 ++--- src/lib/nodes/widgets/ComfyGalleryNode.ts | 16 ++++++++-- src/lib/nodes/widgets/ComfyWidgetNode.ts | 3 ++ src/lib/widgets/GalleryWidget.svelte | 29 ++++++++----------- src/lib/widgets/ImageUploadWidget.svelte | 2 -- src/main-desktop.ts | 7 ++++- src/main-mobile.ts | 3 +- src/scss/global.scss | 2 +- 15 files changed, 51 insertions(+), 42 deletions(-) diff --git a/index.html b/index.html index 97ded2b..28202f3 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ }
- +