Tengo Gzirishvili Claude Opus 4.8 commited on
Commit
e2bce0f
·
1 Parent(s): 063809e

fix: Materials & Methods "Copy" button stretched full-width

Browse files

.copy-btn has flex:1 (correct for button rows), but in .run-methods-head — a
space-between flex row with just a heading + the button — it grew to fill the
whole card. Scope a flex:0 0 auto override for the methods-box copy button so it
stays compact. Verified in preview: button 56px in a 672px row (was full-width).
Cache-buster -> v=20260608-btn.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. dee/static/app.css +1 -0
  2. dee/static/index.html +2 -2
dee/static/app.css CHANGED
@@ -1599,6 +1599,7 @@ input:focus, textarea:focus, select:focus {
1599
  letter-spacing: 0.08em;
1600
  color: var(--ink-faint);
1601
  }
 
1602
  .run-methods-body { font-family: var(--font-ui); }
1603
  .run-methods-body code {
1604
  font-family: var(--font-mono);
 
1599
  letter-spacing: 0.08em;
1600
  color: var(--ink-faint);
1601
  }
1602
+ .run-methods-head .copy-btn { flex: 0 0 auto; } /* compact — don't stretch to full width */
1603
  .run-methods-body { font-family: var(--font-ui); }
1604
  .run-methods-body code {
1605
  font-family: var(--font-mono);
dee/static/index.html CHANGED
@@ -28,7 +28,7 @@
28
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
29
  app.js change. Bump these numbers whenever you ship a frontend update —
30
  without them, users keep getting the stale file for up to a week. -->
31
- <link rel="stylesheet" href="/static/app.css?v=20260608-min" />
32
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
33
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
34
  <!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
@@ -1817,6 +1817,6 @@
1817
  <!-- Cloning reference data must load before app.js so the Designer
1818
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1819
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1820
- <script src="/static/app.js?v=20260608-min" defer></script>
1821
  </body>
1822
  </html>
 
28
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
29
  app.js change. Bump these numbers whenever you ship a frontend update —
30
  without them, users keep getting the stale file for up to a week. -->
31
+ <link rel="stylesheet" href="/static/app.css?v=20260608-btn" />
32
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
33
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
34
  <!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
 
1817
  <!-- Cloning reference data must load before app.js so the Designer
1818
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1819
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1820
+ <script src="/static/app.js?v=20260608-btn" defer></script>
1821
  </body>
1822
  </html>