mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Fix filter popovers for select and multi select fields
This commit is contained in:
@@ -114,7 +114,7 @@ export const ViewMultiSelectFieldFilter = ({
|
||||
{!hideInput && (
|
||||
<Popover>
|
||||
<PopoverTrigger asChild>
|
||||
<div className="flex h-full w-full cursor-pointer flex-row items-center gap-1 rounded-md border border-input p-1">
|
||||
<div className="flex h-full w-full cursor-pointer flex-row items-center gap-1 rounded-md border border-input p-2">
|
||||
{selectedOptions.map((option) => (
|
||||
<SelectOptionBadge
|
||||
key={option.id}
|
||||
@@ -122,6 +122,11 @@ export const ViewMultiSelectFieldFilter = ({
|
||||
color={option.color}
|
||||
/>
|
||||
))}
|
||||
{selectedOptions.length === 0 && (
|
||||
<p className="text-xs text-muted-foreground">
|
||||
No options selected
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-80 p-1">
|
||||
|
||||
@@ -114,7 +114,7 @@ export const ViewSelectFieldFilter = ({
|
||||
{!hideInput && (
|
||||
<Popover>
|
||||
<PopoverTrigger asChild>
|
||||
<div className="flex h-full w-full cursor-pointer flex-row items-center gap-1 rounded-md border border-input p-1">
|
||||
<div className="flex h-full w-full cursor-pointer flex-row items-center gap-1 rounded-md border border-input p-2">
|
||||
{selectedOptions.map((option) => (
|
||||
<SelectOptionBadge
|
||||
key={option.id}
|
||||
@@ -122,6 +122,11 @@ export const ViewSelectFieldFilter = ({
|
||||
color={option.color}
|
||||
/>
|
||||
))}
|
||||
{selectedOptions.length === 0 && (
|
||||
<p className="text-xs text-muted-foreground">
|
||||
No options selected
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-80 p-1">
|
||||
|
||||
Reference in New Issue
Block a user