Skip to content

Commit 8ca8451

Browse files
committed
styling tweaks
1 parent 323f1b9 commit 8ca8451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/search/InstantSearch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
FloatingPortal,
2222
} from "@floating-ui/react";
2323
import { PiCaretDownBold } from "react-icons/pi";
24-
import { addDays } from "date-fns";
24+
import { subDays } from "date-fns";
2525
import { setSearchParams } from "~/util/url";
2626
import he from "he";
2727

@@ -75,7 +75,7 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
7575

7676
const title = hierarchy ? hierarchy.join(" > ") : "Documentation";
7777
const today = new Date();
78-
const futureDate = addDays(today, item.lastModified);
78+
const futureDate = subDays(today, item.lastModified);
7979
const options: Intl.DateTimeFormatOptions = {
8080
year: "numeric",
8181
month: "long",
@@ -93,7 +93,7 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
9393
<Highlight attribute="content" hit={item} />
9494
</p>
9595
{item.lastModified && (
96-
<span className="">
96+
<span className="text-cl1-gray-4! dark:text-cl1-gray-7! mt-2 text-sm">
9797
{futureDate.toLocaleDateString("en-US", options)}
9898
</span>
9999
)}

0 commit comments

Comments
 (0)