Allow for custom scrollbar styling

This commit is contained in:
Gabe Kangas
2022-11-13 12:37:31 -08:00
parent f348203016
commit 769f05db2c
6 changed files with 68 additions and 69 deletions

View File

@@ -51,3 +51,17 @@
overflow-y: scroll;
overflow-x: hidden;
}
.virtuoso::-webkit-scrollbar {
width: 5px;
height: auto;
background-color: var(--theme-color-components-chat-background);
}
.virtuoso::-webkit-scrollbar-thumb {
background: var(--theme-color-components-scrollbar-thumb);
}
.chatTextField {
border-top: 1px solid lightgray;
}

View File

@@ -192,7 +192,11 @@ export const ChatContainer: FC<ChatContainerProps> = ({
return (
<div id="chat-container" className={styles.chatContainer}>
{MessagesTable}
{showInput && <ChatTextField />}
{showInput && (
<div className={styles.chatTextField}>
<ChatTextField />
</div>
)}
</div>
);
};