File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,23 @@ export const Preview: FC = () => {
89
89
) }
90
90
>
91
91
< div className = "flex w-full items-center justify-between" >
92
- < p className = "font-semibold text-3xl text-content-primary" >
93
- Parameters
94
- </ p >
92
+ < div className = "flex items-center justify-center gap-4" >
93
+ < p className = "font-semibold text-3xl text-content-primary" >
94
+ Parameters
95
+ </ p >
96
+
97
+ < AnimatePresence >
98
+ { isDebouncing && $wasmState === "loaded" ? (
99
+ < motion . div
100
+ initial = { { opacity : 0 , scale : 0.75 } }
101
+ animate = { { opacity : 1 , scale : 1 } }
102
+ exit = { { opacity : 0 , scale : 0.75 } }
103
+ >
104
+ < LoaderIcon className = "animate-spin text-content-primary" />
105
+ </ motion . div >
106
+ ) : null }
107
+ </ AnimatePresence >
108
+ </ div >
95
109
< Button variant = "destructive" > Reset form</ Button >
96
110
</ div >
97
111
@@ -100,9 +114,6 @@ export const Preview: FC = () => {
100
114
"flex h-full w-full items-center justify-center overflow-x-clip rounded-xl border p-4" ,
101
115
output && "block overflow-y-scroll" ,
102
116
) }
103
- style = { {
104
- opacity : isDebouncing && $wasmState === "loaded" ? 0.5 : 1 ,
105
- } }
106
117
>
107
118
{ output ? (
108
119
< div className = "flex flex-col gap-4" >
@@ -217,7 +228,7 @@ const ErrorPane = () => {
217
228
transition = { {
218
229
when : "afterChildren" ,
219
230
} }
220
- exit = { { opacity : 0 } }
231
+ exit = { { opacity : 0 } }
221
232
className = { cn (
222
233
"absolute bottom-0 left-0 flex max-h-[60%] w-full flex-col justify-start" ,
223
234
$errors . show && "h-auto" ,
You can’t perform that action at this time.
0 commit comments