improve AI

This commit is contained in:
Andras Schmelczer 2026-03-15 11:09:01 +00:00
parent daf830c5ed
commit b3a7ab40c8
7 changed files with 118 additions and 17 deletions

View file

@ -3,7 +3,12 @@ const H = 1.15; // digit slot height in em
function Digit({ char, delay, active }: { char: string; delay: number; active: boolean }) {
const idx = DIGITS.indexOf(char);
if (idx === -1) return <span>{char}</span>;
if (idx === -1)
return (
<span className="inline-block" style={{ height: `${H}em`, lineHeight: `${H}em` }}>
{char}
</span>
);
const offset = active ? -idx * H : 0;