diff --git a/cors-fetch.html b/cors-fetch.html index b16af29..6c10dca 100644 --- a/cors-fetch.html +++ b/cors-fetch.html @@ -444,12 +444,45 @@ font-weight: 600; } + /* Body toolbar (format toggle + copy button) */ + .body-toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-bottom: 8px; + } + + .copy-btn { + background: #e5e7eb; + color: #374151; + border: none; + border-radius: 6px; + padding: 5px 12px; + font-size: 0.82rem; + font-weight: 500; + cursor: pointer; + display: inline-flex; + align-items: center; + gap: 5px; + min-height: 30px; + transition: background 0.15s; + } + + .copy-btn:hover { + background: #d1d5db; + } + + .copy-btn.copied { + background: #dcfce7; + color: #166534; + } + /* JSON format toggle */ .format-toggle-row { display: flex; align-items: center; gap: 8px; - margin-bottom: 8px; } .format-toggle-row label { @@ -701,11 +734,17 @@

CORS Fetch Tester

Body Shown as text (UTF-8) -