mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-04 19:50:57 +02:00
clean horizontal scrollbar
This commit is contained in:
@ -2007,7 +2007,7 @@ export function ChatPage({
|
||||
{...getRootProps()}
|
||||
>
|
||||
<div
|
||||
className={`w-full h-full flex flex-col overflow-y-auto include-scrollbar overflow-x-hidden relative`}
|
||||
className={`w-full h-full flex flex-col overflow-y-auto include-horizontal-scrollbar overflow-x-hidden relative`}
|
||||
ref={scrollableDivRef}
|
||||
>
|
||||
{/* ChatBanner is a custom banner that displays a admin-specified message at
|
||||
|
@ -76,7 +76,7 @@ export function AssistantsTab({
|
||||
items={assistants.map((a) => a.id.toString())}
|
||||
strategy={verticalListSortingStrategy}
|
||||
>
|
||||
<div className="px-4 pb-2 max-h-[500px] include-scrollbar overflow-y-scroll my-3 grid grid-cols-1 gap-4">
|
||||
<div className="px-4 pb-2 max-h-[500px] include-horizontal-scrollbar overflow-y-scroll my-3 grid grid-cols-1 gap-4">
|
||||
{assistants.map((assistant) => (
|
||||
<DraggableAssistantCard
|
||||
key={assistant.id.toString()}
|
||||
|
@ -260,28 +260,29 @@
|
||||
}
|
||||
}
|
||||
|
||||
.include-scrollbar::-webkit-scrollbar {
|
||||
.include-horizontal-scrollbar::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.include-scrollbar::-webkit-scrollbar-track {
|
||||
.include-horizontal-scrollbar::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.include-scrollbar::-webkit-scrollbar-thumb {
|
||||
.include-horizontal-scrollbar::-webkit-scrollbar-thumb {
|
||||
background: #888;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.include-scrollbar::-webkit-scrollbar-thumb:hover {
|
||||
.include-horizontal-scrollbar::-webkit-scrollbar-thumb:hover {
|
||||
background: #555;
|
||||
}
|
||||
|
||||
.include-scrollbar {
|
||||
.include-horizontal-scrollbar {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #888 transparent;
|
||||
overflow: overlay;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.inputscroll::-webkit-scrollbar-track {
|
||||
|
@ -63,7 +63,9 @@ export const LlmList: React.FC<LlmListProps> = ({
|
||||
return (
|
||||
<div
|
||||
className={`${
|
||||
scrollable ? "max-h-[200px] include-scrollbar" : "max-h-[300px]"
|
||||
scrollable
|
||||
? "max-h-[200px] include-horizontal-scrollbar"
|
||||
: "max-h-[300px]"
|
||||
} bg-background-175 flex flex-col gap-y-1 overflow-y-scroll`}
|
||||
>
|
||||
{userDefault && (
|
||||
|
@ -18,7 +18,7 @@ export default function ExceptionTraceModal({
|
||||
title="Full Exception Trace"
|
||||
onOutsideClick={onOutsideClick}
|
||||
>
|
||||
<div className="overflow-y-auto include-scrollbar pr-3 h-full mb-6">
|
||||
<div className="overflow-y-auto include-horizontal-scrollbar pr-3 h-full mb-6">
|
||||
<div className="mb-6">
|
||||
{!copyClicked ? (
|
||||
<div
|
||||
|
@ -698,7 +698,7 @@ export const SearchSection = ({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="absolute include-scrollbar h-screen overflow-y-auto left-0 w-full top-0">
|
||||
<div className="absolute include-horizontal-scrollbar h-screen overflow-y-auto left-0 w-full top-0">
|
||||
<FunctionalHeader
|
||||
sidebarToggled={toggledSidebar}
|
||||
reset={() => setQuery("")}
|
||||
|
Reference in New Issue
Block a user