andreiski commited on
Commit
cdc3cf5
·
verified ·
1 Parent(s): 1501a81

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -196,7 +196,10 @@ UI_HTML = """
196
  </div>
197
  <button id="ivx-gen" disabled>write the abstract</button>
198
  <div id="ivx-heldwrap">
199
- <div id="ivx-heldhead" hidden>held, newest first</div>
 
 
 
200
  <div id="ivx-held"></div>
201
  </div>
202
  </aside>
@@ -276,6 +279,17 @@ UI_CSS = """
276
  #ivx-heldhead { font-size:11px; letter-spacing:.1em; text-transform:uppercase;
277
  color:var(--muted); margin-bottom:6px; }
278
  #ivx-heldhead[hidden] { display:none; }
 
 
 
 
 
 
 
 
 
 
 
279
  .hcard { background:var(--hold-bg); border:1px solid var(--line); border-left:4px solid var(--hold);
280
  border-radius:8px; padding:8px 10px; margin-bottom:7px; display:flex; gap:8px;
281
  align-items:flex-start; font-size:12.5px; animation:drop .25s ease; }
 
196
  </div>
197
  <button id="ivx-gen" disabled>write the abstract</button>
198
  <div id="ivx-heldwrap">
199
+ <div id="ivx-heldrow">
200
+ <div id="ivx-heldhead" hidden>held, newest first</div>
201
+ <button id="ivx-add" title="write your own intuition">+</button>
202
+ </div>
203
  <div id="ivx-held"></div>
204
  </div>
205
  </aside>
 
279
  #ivx-heldhead { font-size:11px; letter-spacing:.1em; text-transform:uppercase;
280
  color:var(--muted); margin-bottom:6px; }
281
  #ivx-heldhead[hidden] { display:none; }
282
+ #ivx-heldrow { display:flex; align-items:center; gap:8px; }
283
+ #ivx-heldrow #ivx-heldhead { flex:1; }
284
+ #ivx-add { width:26px; height:26px; border-radius:8px; border:1px solid var(--line);
285
+ background:#fff; color:var(--muted); font-size:16px; line-height:1; cursor:pointer; }
286
+ #ivx-add:hover { border-color:var(--hold); color:var(--hold); }
287
+ .hcard.own { border-left-color:#7a5cc4; }
288
+ .hcard .txt[contenteditable]:focus { outline:2px solid var(--hold); outline-offset:2px;
289
+ border-radius:4px; }
290
+ .hcard .txt:empty:before { content:attr(data-ph); color:var(--muted); }
291
+ #ivx-card .txt[contenteditable]:focus { outline:2px solid var(--hold); outline-offset:3px;
292
+ border-radius:5px; }
293
  .hcard { background:var(--hold-bg); border:1px solid var(--line); border-left:4px solid var(--hold);
294
  border-radius:8px; padding:8px 10px; margin-bottom:7px; display:flex; gap:8px;
295
  align-items:flex-start; font-size:12.5px; animation:drop .25s ease; }