Add gradio classes to widgets

This commit is contained in:
space-nuko
2023-04-27 17:16:57 -07:00
parent 8453b831a1
commit 1b55c35aad
4 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
} }
</script> </script>
<div class="wrapper"> <div class="wrapper gr-combo">
{#if item !== null && option !== undefined} {#if item !== null && option !== undefined}
<label> <label>
<BlockTitle show_label={true}>{item.widget.name}</BlockTitle> <BlockTitle show_label={true}>{item.widget.name}</BlockTitle>

View File

@@ -33,7 +33,7 @@
} }
</script> </script>
<div class="wrapper comfy-gallery-widget" bind:this={element}> <div class="wrapper comfy-gallery-widget gr-gallery" bind:this={element}>
{#if item && itemValue} {#if item && itemValue}
<Block variant="solid" padding={false}> <Block variant="solid" padding={false}>
<Gallery <Gallery

View File

@@ -22,7 +22,7 @@
} }
</script> </script>
<div class="wrapper"> <div class="wrapper gr-range">
{#if item && option} {#if item && option}
<Range <Range
bind:value={option} bind:value={option}

View File

@@ -6,7 +6,7 @@
$: if (item) { itemValue = item.value; } $: if (item) { itemValue = item.value; }
</script> </script>
<div class="wrapper"> <div class="wrapper gr-textbox">
{#if item !== null && itemValue !== null} {#if item !== null && itemValue !== null}
<TextBox <TextBox
bind:value={$itemValue} bind:value={$itemValue}