Skip to content

Commit

Permalink
docs: fix safari favicon (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 27, 2024
1 parent f15f84a commit b11fb2c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
8 changes: 6 additions & 2 deletions apps/docs/app/docs/layout.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { pageTree } from "@/app/source";
import { RootToggle } from "fumadocs-ui/components/layout/root-toggle";
import { BookIcon, LayoutTemplateIcon, PhoneCallIcon } from "lucide-react";
import { LibraryIcon, type LucideIcon } from "lucide-react";
import icon from "@/public/favicon/favicon.svg";
import icon from "@/public/favicon/icon.svg";
import Image from "next/image";

type Mode = {
Expand Down Expand Up @@ -52,7 +52,11 @@ export const baseOptions: BaseLayoutProps = {
nav: {
title: (
<>
<Image src={icon} alt="logo" className="inline size-4" />
<Image
src={icon}
alt="logo"
className="inline size-4 dark:hue-rotate-180 dark:invert"
/>
<span className="font-medium">assistant-ui</span>
</>
),
Expand Down
8 changes: 6 additions & 2 deletions apps/docs/components/shadcn/Shadcn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { type FC } from "react";

import { Button, type ButtonProps } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import icon from "@/public/favicon/favicon.svg";
import icon from "@/public/favicon/icon.svg";
import { Sheet, SheetContent, SheetTrigger } from "../ui/sheet";
import {
TooltipProvider,
Expand Down Expand Up @@ -72,7 +72,11 @@ const TopLeft: FC = () => {
side="right"
>
<div className="flex items-center gap-2 text-sm font-semibold">
<Image src={icon} alt="logo" className="inline size-4" />
<Image
src={icon}
alt="logo"
className="inline size-4 dark:hue-rotate-180 dark:invert"
/>
<span>assistant-ui</span>
</div>

Expand Down
5 changes: 1 addition & 4 deletions apps/docs/public/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/docs/public/favicon/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b11fb2c

Please sign in to comment.