This commit is contained in:
k
2026-09-21 22:33:55 +02:00
parent 360f203ca2
commit ec0191f84a
2 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ function AttachmentBlock({ header, body, tone }: { header: string; body: string;
return ( return (
<span <span
className={cn( className={cn(
"mt-2 block overflow-hidden rounded-2xl text-left", "mt-2 block max-w-full overflow-hidden rounded-2xl text-left",
tone === "accent" ? "bg-black/25 dark:bg-black/30" : "bg-stone-200/70 dark:bg-zinc-800", tone === "accent" ? "bg-black/25 dark:bg-black/30" : "bg-stone-200/70 dark:bg-zinc-800",
)} )}
> >
@@ -42,7 +42,7 @@ function AttachmentBlock({ header, body, tone }: { header: string; body: string;
{open && ( {open && (
<pre <pre
className={cn( className={cn(
"max-h-72 overflow-auto whitespace-pre-wrap break-words border-t px-3 py-2 font-mono text-[12.5px] leading-relaxed", "max-h-72 max-w-full overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] border-t px-3 py-2 font-mono text-[12.5px] leading-relaxed",
tone === "accent" ? "border-white/10" : "border-stone-300/70 dark:border-zinc-700", tone === "accent" ? "border-white/10" : "border-stone-300/70 dark:border-zinc-700",
)} )}
> >
+14 -8
View File
@@ -1122,14 +1122,20 @@ function ProvidersSection({ onChanged }: { onChanged?: () => void }) {
••••{st.last4} ••••{st.last4}
</code> </code>
)} )}
<a {connected ? (
href={m.docs} <span className="ml-auto shrink-0 cursor-not-allowed text-xs opacity-40">
target="_blank" {t("providers.getKey")}
rel="noreferrer" </span>
className="ml-auto shrink-0 text-xs text-accent-700 underline-offset-2 hover:underline dark:text-accent-400" ) : (
> <a
{t("providers.getKey")} href={m.docs}
</a> target="_blank"
rel="noreferrer"
className="ml-auto shrink-0 text-xs text-accent-700 underline-offset-2 hover:underline dark:text-accent-400"
>
{t("providers.getKey")}
</a>
)}
</div> </div>
<div className="flex gap-2"> <div className="flex gap-2">
<Input <Input