improve AI
This commit is contained in:
parent
daf830c5ed
commit
b3a7ab40c8
7 changed files with 118 additions and 17 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue