diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index b556033d..f5db3cf8 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -394,7 +394,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
{conversations?.loading && !isDeletingConversation && (
diff --git a/frontend/src/components/MultiSelectPopup.tsx b/frontend/src/components/MultiSelectPopup.tsx index 7ccee569..96a381bf 100644 --- a/frontend/src/components/MultiSelectPopup.tsx +++ b/frontend/src/components/MultiSelectPopup.tsx @@ -212,7 +212,7 @@ export default function MultiSelectPopup({
) : ( -
+
{filteredOptions.length === 0 ? (
-
+
{options ? ( <> {filteredOptions?.map((option: any, index: number) => { diff --git a/frontend/src/components/ToolsPopup.tsx b/frontend/src/components/ToolsPopup.tsx index 11f01cab..e4b7e874 100644 --- a/frontend/src/components/ToolsPopup.tsx +++ b/frontend/src/components/ToolsPopup.tsx @@ -175,7 +175,7 @@ export default function ToolsPopup({
) : (
-
+
{filteredTools.length === 0 ? (
{String(children).replace(/\n$/, '')} @@ -645,7 +644,7 @@ function AllSources(sources: AllSourcesProps) {

{`${sources.sources.length} ${t('conversation.sources.title')}`}

-
+
{sources.sources.map((source, index) => { const isExternalSource = source.link && source.link !== 'local'; return ( @@ -866,7 +865,6 @@ function Thought({ customStyle={{ margin: 0, borderRadius: 0, - scrollbarWidth: 'thin', }} > {String(children).replace(/\n$/, '')} diff --git a/frontend/src/index.css b/frontend/src/index.css index 61224d71..f3e5c6c1 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -108,7 +108,6 @@ layer(base); } @utility scrollbar-thin { - /* Thin scrollbar utility */ &::-webkit-scrollbar { width: 6px; height: 6px; @@ -120,31 +119,29 @@ layer(base); /* Light theme scrollbar */ &::-webkit-scrollbar-thumb { - background: rgba(215, 215, 215, 1); - border-radius: 3px; + background: #E2E8F0; + border-radius: 9999px; } &::-webkit-scrollbar-thumb:hover { - background: rgba(195, 195, 195, 1); + background: #8C9198; } /* Dark theme scrollbar */ .dark &::-webkit-scrollbar-thumb { - background: rgba(77, 78, 88, 1); - border-radius: 3px; + background: #CFCFCF; + border-radius: 9999px; } .dark &::-webkit-scrollbar-thumb:hover { - background: rgba(97, 98, 108, 1); + background: #F0F0F0; } - /* For Firefox - Light theme */ scrollbar-width: thin; - scrollbar-color: rgba(215, 215, 215, 1) transparent; + scrollbar-color: #E2E8F0 transparent; - /* For Firefox - Dark theme */ .dark & { - scrollbar-color: rgba(77, 78, 88, 1) transparent; + scrollbar-color: #CFCFCF transparent; } } @@ -175,16 +172,25 @@ layer(base); min-width: 150px; max-width: 320px; overflow: auto; - scrollbar-width: thin; - scrollbar-color: grey transparent; } & td { min-width: 150px; max-width: 320px; overflow: auto; - scrollbar-width: thin; - scrollbar-color: grey transparent; + } + + @supports (-moz-appearance: none) { + & th, + & td { + scrollbar-width: thin; + scrollbar-color: #E2E8F0 transparent; + } + + .dark & th, + .dark & td { + scrollbar-color: #CFCFCF transparent; + } } } @@ -204,23 +210,24 @@ layer(base); background-color: #202124; /* raisin-black */ } ::-webkit-scrollbar { - width: 8px; + width: 6px; + height: 6px; } ::-webkit-scrollbar-track { - background: #f1f1f1; - } - .dark ::-webkit-scrollbar-track { - background: #2f3036; + background: transparent; } ::-webkit-scrollbar-thumb { - background: #888; - border-radius: 40px; + background: #E2E8F0; + border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { - background: #555; + background: #8C9198; + } + .dark ::-webkit-scrollbar-thumb { + background: #CFCFCF; } .dark ::-webkit-scrollbar-thumb:hover { - background: #b1afaf; + background: #F0F0F0; } } @@ -635,9 +642,6 @@ Avoid over-scrolling in mobile browsers src: url('/fonts/IBMPlexMono-Medium.ttf'); } - ::-webkit-scrollbar { - width: 10; - } /* Light mode specific autofill styles */ input:-webkit-autofill, input:-webkit-autofill:hover,