style(web): fewer layout classes new to the site on the assistants page (#205)
The value of a new token sits in a paragraph instead of a block-level code element, and the connection helps space their content with the class the other blocks use. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
d81bd18a2c
commit
2b243b3111
2 changed files with 5 additions and 5 deletions
|
|
@ -43,9 +43,9 @@ function Template({ text }: { text: string }) {
|
|||
|
||||
function Help({ title, children }: { title: string; children: React.ReactNode }) {
|
||||
return (
|
||||
<details className="border border-border-light dark:border-border-dark rounded-lg px-3 py-2">
|
||||
<details className="border border-border-light dark:border-border-dark rounded-lg px-3 py-2 space-y-2">
|
||||
<summary className="cursor-pointer text-sm font-medium">{title}</summary>
|
||||
<div className="pt-2 space-y-2 text-sm">{children}</div>
|
||||
<div className="space-y-2 text-sm">{children}</div>
|
||||
</details>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
|
|||
export function AssistantsCreated({ token }: { token: string }) {
|
||||
const { t } = useTranslation();
|
||||
const [copied, setCopied] = useState(false);
|
||||
const value = useRef<HTMLElement>(null);
|
||||
const value = useRef<HTMLParagraphElement>(null);
|
||||
|
||||
const copy = async () => {
|
||||
try {
|
||||
|
|
@ -31,9 +31,9 @@ export function AssistantsCreated({ token }: { token: string }) {
|
|||
<section className="border border-bleu rounded-lg p-4 space-y-3 bg-surface-light dark:bg-surface-dark">
|
||||
<h3 className="font-semibold">{t("assistants.created.heading")}</h3>
|
||||
{/* One tap selects the whole value (select-all); it wraps instead of widening the page. */}
|
||||
<code ref={value} className="block font-mono text-sm break-all select-all">
|
||||
<p ref={value} className="font-mono text-sm break-all select-all">
|
||||
{token}
|
||||
</code>
|
||||
</p>
|
||||
<p className="text-sm">{t("assistants.created.once")}</p>
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue