mirror of
https://github.com/aljazceru/AgentGPT.git
synced 2025-12-17 05:54:20 +01:00
🚀 Fix scroll bar styling
This commit is contained in:
@@ -11,12 +11,12 @@ const ChatWindow = ({ children, className }: ChatWindowProps) => {
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
"border-translucent flex h-full w-full flex-col rounded-3xl border-2 border-white/20 bg-zinc-900 text-white shadow-2xl drop-shadow-lg " +
|
||||
"border-translucent flex h-full max-h-full w-full flex-col rounded-3xl border-2 border-white/20 bg-zinc-900 text-white shadow-2xl drop-shadow-lg " +
|
||||
className
|
||||
}
|
||||
>
|
||||
<MacWindowHeader />
|
||||
<div className="overflow-y-scroll">{children}</div>
|
||||
<div className="mb-3 mr-3 max-h-[100%] overflow-y-auto">{children}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -6,4 +6,32 @@
|
||||
background-image: radial-gradient(circle, rgba(58, 58, 58, 0.75) 2px, transparent 0px);
|
||||
background-size: 30px 30px;
|
||||
background-position: 0 0, 15px 15px;
|
||||
}
|
||||
|
||||
/* Customize website's scrollbar like Mac OS
|
||||
Not supports in Firefox and IE */
|
||||
|
||||
/* total width */
|
||||
div::-webkit-scrollbar {
|
||||
border-radius: 16px;
|
||||
background-color: #464649;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
/* background of the scrollbar except button or resizer */
|
||||
div::-webkit-scrollbar-track {
|
||||
border-radius: 16px;
|
||||
background-color: #464649;
|
||||
}
|
||||
|
||||
/* scrollbar itself */
|
||||
div::-webkit-scrollbar-thumb {
|
||||
background-color: #babac0;
|
||||
border-radius: 16px;
|
||||
border: 2px solid #464649;
|
||||
}
|
||||
|
||||
/* set button(top and bottom of the scrollbar) */
|
||||
div::-webkit-scrollbar-button {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user