diff --git a/src/components/Score.module.scss b/src/components/Score.module.scss index 6f06791..d2bb4f6 100644 --- a/src/components/Score.module.scss +++ b/src/components/Score.module.scss @@ -71,6 +71,10 @@ top: 0; background-color: gray; } + + td.username { + word-break: break-all; + } } } diff --git a/src/components/Score.tsx b/src/components/Score.tsx index 09cf086..ca752d9 100644 --- a/src/components/Score.tsx +++ b/src/components/Score.tsx @@ -98,7 +98,7 @@ const Score: FC<{ setTimeout(() => { const rankEl = document.getElementById(_userId + 'el'); rankEl?.scrollIntoView({ behavior: 'smooth' }); - }); + }, 1000); } }) .catch((e) => { @@ -107,7 +107,7 @@ const Score: FC<{ }; const onConfirmNameClick = () => { - const inputUsername = usernameInputRef.current?.value; + const inputUsername = usernameInputRef.current?.value.trim(); if (!inputUsername) return; const newUserId = randomString(8); setUsername(inputUsername); @@ -174,7 +174,11 @@ const Score: FC<{ return (
- fireworks}> + 🎆fireworks🎆 + } + > {success && }
@@ -203,6 +207,7 @@ const Score: FC<{