Settings > API: token changes wait for Save, curl example with the token
Adding or revoking an API token is now pending like the other settings: Save applies it, Cancel drops it. After Save each new token is shown once with a copy button, and the curl example uses it, highlighted, with its own copy button. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e77fcb326d
commit
7ee27bb1ab
5 files changed
+133
-63
No files matched your search
@@ -928,6 +928,13 @@ body.login-page {
|
||||
.token-form .btn { height: 28px; font-size: 12px; }
|
||||
.token-new { margin-top: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent-soft); }
|
||||
.token-secret { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
|
||||
.token-label { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
|
||||
.token-row.revoked b, .token-row.revoked code { text-decoration: line-through; opacity: .6; }
|
||||
.token-row.pending { border: 1px dashed var(--accent); }
|
||||
.token-example-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
|
||||
.token-example-box .token-example { flex: 1; min-width: 0; margin: 0; }
|
||||
.token-example-box .btn { height: 28px; font-size: 12px; }
|
||||
.token-example mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; font-weight: 600; }
|
||||
.token-secret code { flex: 1; min-width: 0; font: 12px var(--mono); overflow-wrap: anywhere; user-select: all; }
|
||||
.token-secret .btn { height: 28px; font-size: 12px; }
|
||||
.token-example {
|
||||
|
||||
Reference in new issue
Block a user