scrollbar styling

This commit is contained in:
Nathaniel Tampus
2023-03-06 18:19:47 +08:00
parent b98e4a23a9
commit 99b73fb1c1
2 changed files with 16 additions and 2 deletions

View File

@@ -442,7 +442,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) {
<div className="h-60 w-full min-w-fit">
<div className="bg-base-300 flex h-full w-full min-w-[64px] flex-col rounded-lg p-4 shadow-sm">
<ul
className="mb-4 flex flex-col gap-1 overflow-y-scroll break-words"
className="mb-4 flex h-full flex-col gap-1 overflow-y-scroll break-words"
ref={chatlistRef}
>
{chatMessages.map((m, i) => (

View File

@@ -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;