diff --git a/web/src/app/globals.css b/web/src/app/globals.css index 88350038..c54a6a43 100644 --- a/web/src/app/globals.css +++ b/web/src/app/globals.css @@ -164,12 +164,12 @@ --color-color-2: var(--color-2); --color-color-1: var(--color-1); - @keyframes rainbow { - 0% { - background-position: 0%; + @keyframes rainbow { + 0% { + background-position: 0%; } - 100% { - background-position: 200%; + 100% { + background-position: 200%; } } } @@ -380,4 +380,4 @@ input.error:focus { @apply ring-2 ring-destructive ring-offset-2 ring-offset-background; } -} \ No newline at end of file +} diff --git a/web/src/components/add-to-search-bar-button.tsx b/web/src/components/add-to-search-bar-button.tsx index bd96d415..c34377b8 100644 --- a/web/src/components/add-to-search-bar-button.tsx +++ b/web/src/components/add-to-search-bar-button.tsx @@ -1,11 +1,11 @@ "use client" -import { useState } from "react" import { Check, Copy, Globe2, Search, Sparkles } from "lucide-react" -import { RainbowButton } from "@/components/ui/rainbow-button" +import { useState } from "react" import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog" import { Input } from "@/components/ui/input" +import { RainbowButton } from "@/components/ui/rainbow-button" import { Separator } from "@/components/ui/separator" import { cn } from "@/lib/utils" @@ -54,13 +54,7 @@ const instructions: Array<{ browser: string; steps: string[] }> = [ }, ] -export function AddToSearchBarButton({ - size = "default", - className, -}: { - size?: "sm" | "default" | "lg" - className?: string -}) { +export function AddToSearchBarButton({ size = "default", className }: { size?: "sm" | "default" | "lg"; className?: string }) { const [copied, setCopied] = useState(false) const handleCopy = async () => { @@ -76,14 +70,7 @@ export function AddToSearchBarButton({ return ( - + Add to browser search Add to search @@ -105,13 +92,7 @@ export function AddToSearchBarButton({

Search URL (schema)

-
+ {submission.description?.trim() && ( +
+

+ + Description +

+

{submission.description}

+
+ )} +