scrollbar styling
This commit is contained in:
@@ -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) => (
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user