Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions app/components/layout/settings/apikeys/byok-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { toast } from "@/components/ui/toast"
import { fetchClient } from "@/lib/fetch"
import { useModel } from "@/lib/model-store/provider"
import { cn } from "@/lib/utils"
import { PlusIcon } from "@phosphor-icons/react"
import { KeyIcon, PlusIcon } from "@phosphor-icons/react"
import { useMutation, useQueryClient } from "@tanstack/react-query"
import { Loader2, Trash2 } from "lucide-react"
import { useState } from "react"
Expand Down Expand Up @@ -232,19 +232,24 @@ export function ByokSection() {
Your keys are stored securely with end-to-end encryption.
</p>

<div className="mt-4 grid grid-cols-4 gap-3">
<div className="mt-4 grid grid-cols-2 gap-3 min-[400px]:grid-cols-3 min-[500px]:grid-cols-4">
{PROVIDERS.map((provider) => (
<button
key={provider.id}
type="button"
onClick={() => setSelectedProvider(provider.id)}
className={cn(
"flex aspect-square min-w-28 flex-col items-center justify-center gap-2 rounded-lg border p-4",
"relative flex aspect-square min-w-28 flex-col items-center justify-center gap-2 rounded-lg border p-4",
selectedProvider === provider.id
? "border-primary ring-primary/30 ring-2"
: "border-border"
)}
>
{userKeyStatus[provider.id] && (
<span className="absolute top-1 right-1 rounded-sm bg-green-200 p-1">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use something differents than green?
maybe a variable from global.css so it looks nice in dark mode too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibelick Got it. I used the secondary colors, and this is the best I could do:

Screenshot light mode: image
Screenshot dark mode: image

Let me know if you need me to make any further changes.

Copy link
Contributor Author

@buneeIsSlo buneeIsSlo Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibelick Hi, sorry I hadn't committed the changes yet. What do I do now 😭

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@buneeIsSlo can you reopen a PR with the colors updated please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibelick on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibelick Done #253

<KeyIcon className="size-3.5 text-green-800" />
</span>
)}
<provider.icon className="size-4" />
<span>{provider.name}</span>
</button>
Expand Down