From 99b73fb1c17d3d8bcf315228465cfea0575517e7 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Mon, 6 Mar 2023 18:19:47 +0800 Subject: [PATCH] scrollbar styling --- client/src/components/game/GamePage.tsx | 4 ++-- client/src/styles/globals.css | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/client/src/components/game/GamePage.tsx b/client/src/components/game/GamePage.tsx index 7b1831f..734de20 100644 --- a/client/src/components/game/GamePage.tsx +++ b/client/src/components/game/GamePage.tsx @@ -418,7 +418,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) {
- +
{(lobby.actualGame.pgn() || "") .split(/\d+\./) @@ -442,7 +442,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) {
    {chatMessages.map((m, i) => ( diff --git a/client/src/styles/globals.css b/client/src/styles/globals.css index b5c61c9..995bb75 100644 --- a/client/src/styles/globals.css +++ b/client/src/styles/globals.css @@ -1,3 +1,17 @@ @tailwind base; + +* { + scrollbar-width: thin; +} + +*::-webkit-scrollbar { + width: 4px; +} + +*::-webkit-scrollbar-thumb { + @apply bg-slate-500; + border-radius: 2px; +} + @tailwind components; @tailwind utilities;