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

@@ -418,7 +418,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) {
</div> </div>
</div> </div>
<div className="h-36 w-full overflow-y-scroll"> <div className="h-36 w-full overflow-y-scroll">
<table className="table-compact table w-full "> <table className="table-compact table w-full">
<tbody> <tbody>
{(lobby.actualGame.pgn() || "") {(lobby.actualGame.pgn() || "")
.split(/\d+\./) .split(/\d+\./)
@@ -442,7 +442,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) {
<div className="h-60 w-full min-w-fit"> <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"> <div className="bg-base-300 flex h-full w-full min-w-[64px] flex-col rounded-lg p-4 shadow-sm">
<ul <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} ref={chatlistRef}
> >
{chatMessages.map((m, i) => ( {chatMessages.map((m, i) => (

View File

@@ -1,3 +1,17 @@
@tailwind base; @tailwind base;
* {
scrollbar-width: thin;
}
*::-webkit-scrollbar {
width: 4px;
}
*::-webkit-scrollbar-thumb {
@apply bg-slate-500;
border-radius: 2px;
}
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;