The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update copy icons for code editor on mobile
Joshen Lim52b9eb853d5c
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsxindex 7fd95533853..bd98427edf5 100644--- a/www/components/Features/index.tsx+++ b/www/components/Features/index.tsx@@ -22,7 +22,7 @@ const Features = () => {</div><dt className="flex flex-row xl:flex-col ml-4 text-lg leading-6 font-medium text-gray-900 dark:text-white">{name}- {label && <Badge className="mt-1">{label}</Badge>}+ {label && <Badge className="ml-3 xl:mt-1 xl:ml-0">{label}</Badge>}</dt></div><div className="mt-5">diff --git a/www/components/MadeForDevelopers/CodeExamples.tsx b/www/components/MadeForDevelopers/CodeExamples.tsxindex abc1d381b1d..f8080c63f5b 100644--- a/www/components/MadeForDevelopers/CodeExamples.tsx+++ b/www/components/MadeForDevelopers/CodeExamples.tsx@@ -7,6 +7,38 @@ import monokaiCustomTheme from 'data/CodeEditorTheme'SyntaxHighlighter.registerLanguage('javascript', js)+const ClipboardIcon = () => (+ <svg+ viewBox="0 0 24 24"+ width="12"+ height="12"+ stroke="currentColor"+ strokeWidth="2"+ fill="none"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="css-i6dzq1"+ >+ <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />+ <rect x="8" y="2" width="8" height="4" rx="1" ry="1" />+ </svg>+)++const CopiedIcon = () => (+ <svg+ viewBox="0 0 24 24"+ width="12"+ height="12"+ stroke="currentColor"+ strokeWidth="2"+ fill="none"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="css-i6dzq1">+ <polyline points="20 6 9 17 4 12" />+ </svg>+)+const CodeExamples = () => {const [example, setExample] = useState('subscribeExample')const [copied, setCopied] = useState(false)@@ -66,7 +98,12 @@ const CodeExamples = () => {type="button"className="inline-flex items-center px-2.5 py-1.5 border border-dark-300 shadow-sm text-xs font-medium rounded text-dark-100 hover:bg-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">- {copied ? 'Copied!' : 'Copy code'}+ <span className="hidden sm:block">+ {copied ? 'Copied!' : 'Copy code'}+ </span>+ <span className="block sm:hidden">+ {copied ? <CopiedIcon /> : <ClipboardIcon />}+ </span></button></CopyToClipboard></div>