Tha gallery widget

This commit is contained in:
space-nuko
2023-04-07 12:13:03 -05:00
parent eed4e29004
commit f40e46d0c2
18 changed files with 246 additions and 40 deletions

View File

@@ -0,0 +1,28 @@
<script lang="ts">
import type { WidgetUIState } from "$lib/stores/widgetState";
import { Block } from "@gradio/atoms";
import { Gallery } from "@gradio/gallery";
export let item: WidgetUIState | null = null;
</script>
<div class="wrapper comfy-gallery-widget">
{#if item}
<Block variant="solid" padding={false}>
<Gallery
bind:value={item.value}
label={item.widget.name}
show_label={true}
root={""}
root_url={""}
on:select
/>
</Block>
{/if}
</div>
<style>
.wrapper {
padding: 2px;
width: 100%;
}
</style>