BoHuangLab commited on
Commit
cef16d5
·
verified ·
1 Parent(s): a40e7e4

Virtual OpenCell: let the sample strip scroll instead of clipping past two rows

Browse files
cell_fm/apps/virtual_opencell/viewer.py CHANGED
@@ -377,6 +377,9 @@ CSS = """
377
  #virtual-opencell .vo-settings-label { font-size: 16px; color: #182026; margin: 6px 0 -6px 0; }
378
 
379
  /* sample strip: white frame, cyan when active (roi-thumbnail-*) */
 
 
 
380
  #virtual-opencell .vo-thumbnails .grid-container { grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)) !important; }
381
  #virtual-opencell .vo-thumbnails .thumbnail-item { border: 3px solid #fff; border-radius: 5px; box-shadow: none; }
382
  #virtual-opencell .vo-thumbnails .thumbnail-item:hover { opacity: 0.7; }
 
377
  #virtual-opencell .vo-settings-label { font-size: 16px; color: #182026; margin: 6px 0 -6px 0; }
378
 
379
  /* sample strip: white frame, cyan when active (roi-thumbnail-*) */
380
+ /* the gallery block clips to its height, so the grid must scroll inside it rather than overflow */
381
+ #virtual-opencell .vo-thumbnails .gallery-container { height: 100%; }
382
+ #virtual-opencell .vo-thumbnails .grid-wrap { height: 100%; overflow-y: auto; }
383
  #virtual-opencell .vo-thumbnails .grid-container { grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)) !important; }
384
  #virtual-opencell .vo-thumbnails .thumbnail-item { border: 3px solid #fff; border-radius: 5px; box-shadow: none; }
385
  #virtual-opencell .vo-thumbnails .thumbnail-item:hover { opacity: 0.7; }