fixed empty scroll track in citations dropdown (#4685)

* fixed empty scroll track

* use overflow-x-none instead of overflow-x-auto for citation list

* keep behaviour of x scroll, but hide scrollbar since it can be overflowing for no reason

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
Colin Perry 2025-12-02 15:29:16 -08:00 committed by GitHub
parent 99942159f6
commit 00e18887a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ export default function Citations({ sources = [] }) {
/>
</button>
{open && (
<div className="flex flex-wrap flex-col items-start overflow-x-scroll mt-1 ml-14 gap-y-2">
<div className="flex flex-wrap flex-col items-start overflow-x-scroll no-scroll mt-1 ml-14 gap-y-2">
{combineLikeSources(sources).map((source) => (
<Citation
key={v4()}