diff --git a/src/app/pages-layout.css b/src/app/pages-layout.css index 1e84cc427..8c8e15f57 100644 --- a/src/app/pages-layout.css +++ b/src/app/pages-layout.css @@ -66,12 +66,20 @@ .search-menu-result-link { font-size: max(clamp(1.6625vh, 2.0625vw, 1.1875em), 3.75vh); + padding-left: max(0.2vh, 0.2vw); + padding-right: max(0.2vh, 0.2vw); } .search-menu-result-link h3 { font-size: max(clamp(1.82875vh, 2.26875vw, 1.1875em), 4.125vh); } +.search-menu-result-link mark { + background-color: hsl(var(--primary)); + padding: 0 0.2em; + color: white; +} + @media only screen and (max-width: 1024px) { .search-menu-tabslist-item { height: max(4vw, 4vh); diff --git a/src/components/layouts/navbar/search/NavbarSearchButtonInner.tsx b/src/components/layouts/navbar/search/NavbarSearchButtonInner.tsx index 2985461a4..6e8d0fb65 100644 --- a/src/components/layouts/navbar/search/NavbarSearchButtonInner.tsx +++ b/src/components/layouts/navbar/search/NavbarSearchButtonInner.tsx @@ -314,7 +314,7 @@ const NavbarSearchButtonInner =
*>*]:pb-2 first:[&>*>*]:py-2': results !== null, + 'min-h-0 overflow-y-auto break-words border border-input px-8 [&>*>*]:mb-8 first:[&>*>*]:my-8': results !== null, "after:block after:h-10 after:content-['']": searchText === SEARCH_TEXT_INITIAL_STATE })} > diff --git a/src/components/ui/search/Result.tsx b/src/components/ui/search/Result.tsx index 979d05d3e..932e61f0c 100644 --- a/src/components/ui/search/Result.tsx +++ b/src/components/ui/search/Result.tsx @@ -6,6 +6,8 @@ import { usePathname } from 'next/navigation'; import { cn } from '@/lib/tailwind'; import Link from 'next/link'; +import { CardContent, CardHeader, CardTitle, Card } from '../Card'; + interface ResultProps extends Partial { metaTitle: string; excerpt: string; @@ -20,7 +22,7 @@ const Result: FunctionComponent = ({ className, metaTitle, excerpt, = ({ className, metaTitle, excerpt, aria-current={exactMatch ? 'page' : undefined} href={href} > -

{metaTitle}

-

+ + + + {metaTitle} + + + +

+ + ); };