diff --git a/src/components/Discover/DiscoverBrowser.tsx b/src/components/Discover/DiscoverBrowser.tsx index 4e8b083..b18a0a8 100644 --- a/src/components/Discover/DiscoverBrowser.tsx +++ b/src/components/Discover/DiscoverBrowser.tsx @@ -13,6 +13,7 @@ import { MdAutoFixHigh, MdSettingsSuggest, } from "react-icons/md"; +import { MdTune } from "react-icons/md"; import { BiSolidGame } from "react-icons/bi"; import { FaClock, FaGaugeHigh, FaMasksTheater } from "react-icons/fa6"; import { BsSdCardFill } from "react-icons/bs"; @@ -232,20 +233,21 @@ export default function DiscoverBrowser() { }} /> ))} - {/* Ungrouped tags as individual pills at the end */} - {ungroupedTags.map((t) => ( - - ))} + {/* Advanced dropdown for ungrouped tags at the end */} + {ungroupedTags.length > 0 && ( + ({ id: t, name: t }))} + values={selectedTags.filter((t) => ungroupedTags.includes(t))} + onChange={(vals) => { + setSelectedTags((prev) => { + const others = prev.filter((t) => !ungroupedTags.includes(t)); + return [...others, ...vals]; + }); + }} + /> + )} {(selectedTags.length > 0 || selectedBaseRoms.length > 0) && (