Skip to content

Commit

Permalink
fix: scroll bar in chat window (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul917-Kumar authored Oct 19, 2023
1 parent a61693b commit b2a3da5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,22 @@
transform: rotate(360deg);
}
}

.container{
overflow-x: hidden;
}

.container::-webkit-scrollbar{
/* display: none; */
width: 5px;
}
.container::-webkit-scrollbar-track {
/* box-shadow: inset 0 0 5px grey; */
border-radius: 10px;
}

/* Handle */
.container::-webkit-scrollbar-thumb {
background: white;
border-radius: 10px;
}
2 changes: 1 addition & 1 deletion src/components/messageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function MessageBox({
}, [messages]);

return (
<div className="h-full border-[#141414] border-y bg-black overflow-scroll">
<div className="h-full border-[#141414] border-y bg-black overflow-scroll container">
{messages.map(message => {
return Message(message);
})}
Expand Down

0 comments on commit b2a3da5

Please sign in to comment.