lvwerra HF Staff commited on
Commit
8525fad
·
verified ·
1 Parent(s): 5da7d4a

Move copy button inside seq-block (top-right)

Browse files
Files changed (1) hide show
  1. index.html +7 -8
index.html CHANGED
@@ -34,18 +34,19 @@
34
  text-transform: uppercase; letter-spacing: 2px; color: #444;
35
  margin-top: 24px; margin-bottom: 8px;
36
  border-bottom: 1px solid #ccc; padding-bottom: 4px;
37
- display: flex; align-items: center; justify-content: space-between;
38
  }
 
39
  .copy-btn {
 
40
  font-family: "JetBrains Mono", monospace;
41
  font-size: 9px; font-weight: 400;
42
- padding: 2px 8px; border: 1px solid #ddd; border-radius: 3px;
43
  background: #fff; color: #666; cursor: pointer;
44
  text-transform: uppercase; letter-spacing: 1px;
45
  transition: all 0.15s;
46
  }
47
  .copy-btn:hover { border-color: #888; color: #1a1a1a; }
48
- .copy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
49
  .copy-btn.copied { background: #1a8a3a; color: #fff; border-color: #1a8a3a; }
50
 
51
  /* --- Examples --- */
@@ -274,13 +275,11 @@
274
 
275
  <div class="status" id="status"><span class="dot"></span><span id="status-text">idle</span></div>
276
 
277
- <div class="section-title">
278
- <span>Sequence</span>
279
- <button id="copy-btn" class="copy-btn" disabled>copy</button>
280
- </div>
281
 
282
  <div class="output-row">
283
- <div>
 
284
  <div class="seq-block empty" id="seq">prompt + generated bases will stream here</div>
285
  </div>
286
 
 
34
  text-transform: uppercase; letter-spacing: 2px; color: #444;
35
  margin-top: 24px; margin-bottom: 8px;
36
  border-bottom: 1px solid #ccc; padding-bottom: 4px;
 
37
  }
38
+ .seq-wrap { position: relative; }
39
  .copy-btn {
40
+ position: absolute; top: 8px; right: 8px; z-index: 2;
41
  font-family: "JetBrains Mono", monospace;
42
  font-size: 9px; font-weight: 400;
43
+ padding: 3px 8px; border: 1px solid #ddd; border-radius: 3px;
44
  background: #fff; color: #666; cursor: pointer;
45
  text-transform: uppercase; letter-spacing: 1px;
46
  transition: all 0.15s;
47
  }
48
  .copy-btn:hover { border-color: #888; color: #1a1a1a; }
49
+ .copy-btn:disabled { opacity: 0; pointer-events: none; }
50
  .copy-btn.copied { background: #1a8a3a; color: #fff; border-color: #1a8a3a; }
51
 
52
  /* --- Examples --- */
 
275
 
276
  <div class="status" id="status"><span class="dot"></span><span id="status-text">idle</span></div>
277
 
278
+ <div class="section-title">Sequence</div>
 
 
 
279
 
280
  <div class="output-row">
281
+ <div class="seq-wrap">
282
+ <button id="copy-btn" class="copy-btn" disabled>copy</button>
283
  <div class="seq-block empty" id="seq">prompt + generated bases will stream here</div>
284
  </div>
285