mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
made filter chips responsive
This commit is contained in:
@@ -34,15 +34,15 @@ export const FilterChips: React.FC<FilterChipsProps> = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="inline-flex h-14 items-center justify-start gap-5">
|
||||
<div className="flex flex-wrap h-auto min-h-8 gap-3 lg:min-h-14 lg:gap-5 items-center justify-center lg:justify-start">
|
||||
{badges.map((badge) => (
|
||||
<Badge
|
||||
key={badge}
|
||||
variant={selectedFilters.includes(badge) ? "secondary" : "outline"}
|
||||
className="h-1] flex cursor-pointer items-center justify-center gap-2.5 rounded-full border border-black/50 px-6 py-2"
|
||||
className="gap-2 px-3 py-1 lg:gap-2.5 lg:px-6 lg:py-2 flex cursor-pointer items-center justify-center rounded-full border border-black/50 mb-2 lg:mb-3"
|
||||
onClick={() => handleBadgeClick(badge)}
|
||||
>
|
||||
<div className="font-neue text-xl font-medium leading-9 tracking-tight text-[#474747]">
|
||||
<div className="font-neue text-sm font-light lg:text-xl lg:font-medium lg:leading-9 tracking-tight text-[#474747]">
|
||||
{badge}
|
||||
</div>
|
||||
</Badge>
|
||||
|
||||
Reference in New Issue
Block a user