Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
machineuser
commited on
Commit
·
52c7cc9
1
Parent(s):
8bb7b9c
Sync widgets demo
Browse files
packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
<button
|
20 |
class="flex items-center {outputJson ? '' : 'cursor-not-allowed text-gray-300'}"
|
21 |
disabled={!outputJson}
|
|
|
22 |
on:click={() => {
|
23 |
isOutputJsonVisible = !isOutputJsonVisible;
|
24 |
}}
|
@@ -29,7 +30,8 @@
|
|
29 |
{/if}
|
30 |
<button
|
31 |
class="ml-auto flex items-center"
|
32 |
-
|
|
|
33 |
>
|
34 |
<IconMaximize classNames="mr-1" />
|
35 |
{#if !isMaximized}
|
|
|
19 |
<button
|
20 |
class="flex items-center {outputJson ? '' : 'cursor-not-allowed text-gray-300'}"
|
21 |
disabled={!outputJson}
|
22 |
+
type="button"
|
23 |
on:click={() => {
|
24 |
isOutputJsonVisible = !isOutputJsonVisible;
|
25 |
}}
|
|
|
30 |
{/if}
|
31 |
<button
|
32 |
class="ml-auto flex items-center"
|
33 |
+
type="button"
|
34 |
+
on:click|preventDefault={() => updateWidgetState(model.id, "isMaximized", !isMaximized)}
|
35 |
>
|
36 |
<IconMaximize classNames="mr-1" />
|
37 |
{#if !isMaximized}
|