feature/ux-improvements #26
@@ -49,10 +49,7 @@ const status = $derived(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// The "Show" condition: Font is loaded OR it errored out OR it's a noTouch preview (like in search)
|
// The "Show" condition: Font is loaded OR it errored out OR it's a noTouch preview (like in search)
|
||||||
const shouldReveal = $derived.by(() => {
|
const shouldReveal = $derived(status === 'loaded' || status === 'error');
|
||||||
if (noTouch) return true;
|
|
||||||
return status === 'loaded' || status === 'error';
|
|
||||||
});
|
|
||||||
|
|
||||||
const transitionClasses = $derived(
|
const transitionClasses = $derived(
|
||||||
prefersReducedMotion.current
|
prefersReducedMotion.current
|
||||||
|
|||||||
Reference in New Issue
Block a user