chore: cleanup

This commit is contained in:
Adam
2026-03-03 07:10:45 -06:00
parent da82d4035a
commit fa45422bf9
2 changed files with 28 additions and 14 deletions

View File

@@ -57,6 +57,11 @@ export function TextReveal(props: {
() => props.text,
(next, prev) => {
if (next === prev) return
if (typeof next === "string" && typeof prev === "string" && next.startsWith(prev)) {
setCur(next)
widen(win())
return
}
setSwapping(true)
setOld(prev)
setCur(next)