Skip to content

Commit eb61ece

Browse files
committed
fix(landing): reset fading when reduced motion cuts the loop short
showFinished (added when wiring up the prefers-reduced-motion change listener) set the finished phase but left fading true if the preference flipped mid reset-fade, leaving HeroChatLoop stuck at opacity-0.
1 parent c76707f commit eb61ece

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/app/(landing)/components/hero/components/hero-platform-loop/hero-platform-loop.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export function HeroPlatformLoop() {
101101

102102
const showFinished = () => {
103103
clearScheduled()
104+
setFading(false)
104105
setPhase('reply')
105106
setStageOpen(true)
106107
setBuiltCount(STAGE_BLOCKS.length)

0 commit comments

Comments
 (0)