diff --git a/apps/client/src/features/search/components/search-result-item.tsx b/apps/client/src/features/search/components/search-result-item.tsx index 8b7fb80e..24d3472b 100644 --- a/apps/client/src/features/search/components/search-result-item.tsx +++ b/apps/client/src/features/search/components/search-result-item.tsx @@ -1,5 +1,13 @@ import React from "react"; -import { Group, Center, Text, Badge, ActionIcon, Tooltip } from "@mantine/core"; +import { + Group, + Center, + Text, + Badge, + ActionIcon, + Tooltip, + getDefaultZIndex, +} from "@mantine/core"; import { Spotlight } from "@mantine/spotlight"; import { Link } from "react-router-dom"; import { IconFile, IconDownload } from "@tabler/icons-react"; @@ -24,7 +32,7 @@ export function SearchResultItem({ showSpace, }: SearchResultItemProps) { const { t } = useTranslation(); - + if (isAttachmentResult) { const attachmentResult = result as IAttachmentSearch; @@ -48,7 +56,7 @@ export function SearchResultItem({ >
- +
@@ -64,19 +72,19 @@ export function SearchResultItem({ dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(attachmentResult.highlight, { ALLOWED_TAGS: ["mark", "em", "strong", "b"], - ALLOWED_ATTR: [] + ALLOWED_ATTR: [], }), }} /> )}
- - + + @@ -115,7 +123,7 @@ export function SearchResultItem({ dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(pageResult.highlight, { ALLOWED_TAGS: ["mark", "em", "strong", "b"], - ALLOWED_ATTR: [] + ALLOWED_ATTR: [], }), }} /> diff --git a/apps/client/src/features/search/components/search-spotlight-filters.tsx b/apps/client/src/features/search/components/search-spotlight-filters.tsx index ce8bda02..fe0b9e7c 100644 --- a/apps/client/src/features/search/components/search-spotlight-filters.tsx +++ b/apps/client/src/features/search/components/search-spotlight-filters.tsx @@ -23,6 +23,7 @@ import { useDebouncedValue } from "@mantine/hooks"; import { useGetSpacesQuery } from "@/features/space/queries/space-query"; import { useLicense } from "@/ee/hooks/use-license"; import classes from "./search-spotlight-filters.module.css"; +import { isCloud } from "@/lib/config.ts"; interface SearchSpotlightFiltersProps { onFiltersChange?: (filters: any) => void; @@ -79,7 +80,7 @@ export function SearchSpotlightFilters({ { value: "attachment", label: t("Attachments"), - disabled: !hasLicenseKey, + disabled: !isCloud() && !hasLicenseKey, }, ];