diff --git a/web/src/components/search/filtering/FilterDropdown.tsx b/web/src/components/search/filtering/FilterDropdown.tsx index 8d3333d88..4d426664e 100644 --- a/web/src/components/search/filtering/FilterDropdown.tsx +++ b/web/src/components/search/filtering/FilterDropdown.tsx @@ -13,6 +13,8 @@ export function FilterDropdown({ icon, defaultDisplay, width = "w-64", + dropdownWidth, + optionClassName, }: { options: Option[]; selected: string[]; @@ -20,6 +22,8 @@ export function FilterDropdown({ icon: JSX.Element; defaultDisplay: string | JSX.Element; width?: string; + dropdownWidth?: string; + optionClassName?: string; }) { return (
@@ -27,16 +31,16 @@ export function FilterDropdown({ dropdown={
{options.map((option, ind) => { const isSelected = selected.includes(option.key); @@ -44,12 +48,14 @@ export function FilterDropdown({
{icon}
{selected.length === 0 ? ( diff --git a/web/src/components/search/filtering/Filters.tsx b/web/src/components/search/filtering/Filters.tsx index feb2b3452..e4f18d6d1 100644 --- a/web/src/components/search/filtering/Filters.tsx +++ b/web/src/components/search/filtering/Filters.tsx @@ -447,6 +447,8 @@ export function HorizontalSourceSelector({ icon={} defaultDisplay="Sources" width="w-fit max-w-24 ellipsis truncate" + dropdownWidth="max-w-36 w-fit" + optionClassName="truncate break-all ellipsis" /> )} @@ -465,7 +467,9 @@ export function HorizontalSourceSelector({ handleSelect={(option) => handleDocumentSetSelect(option.key)} icon={} defaultDisplay="Sets" - width="w-fit max-w-24 ellipsis" + width="w-fit max-w-24 ellipsis truncate" + dropdownWidth="max-w-36 w-fit" + optionClassName="truncate break-all ellipsis" /> )} @@ -495,7 +499,9 @@ export function HorizontalSourceSelector({ }} icon={} defaultDisplay="Tags" - width="w-fit max-w-24 ellipsis" + width="w-fit max-w-24 ellipsis truncate" + dropdownWidth="max-w-80 w-fit" + optionClassName="truncate break-all ellipsis" /> )}