Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix filter popovers for select and multi select fields
Hakan Shehubfee92f2acaf
diff --git a/desktop/src/renderer/components/databases/search/view-multi-select-field-filter.tsx b/desktop/src/renderer/components/databases/search/view-multi-select-field-filter.tsxindex 8870f2a2..23db9f65 100644--- a/desktop/src/renderer/components/databases/search/view-multi-select-field-filter.tsx+++ b/desktop/src/renderer/components/databases/search/view-multi-select-field-filter.tsx@@ -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) => (<SelectOptionBadgekey={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">diff --git a/desktop/src/renderer/components/databases/search/view-select-field-filter.tsx b/desktop/src/renderer/components/databases/search/view-select-field-filter.tsxindex 9a518981..7af67cad 100644--- a/desktop/src/renderer/components/databases/search/view-select-field-filter.tsx+++ b/desktop/src/renderer/components/databases/search/view-select-field-filter.tsx@@ -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) => (<SelectOptionBadgekey={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">