Tengo Gzirishvili Claude Opus 4.7 commited on
Commit
ab73ecd
·
1 Parent(s): 627ddc3

Symmetric 3+2 layout for "Tune the search" settings grid

Browse files

The auto-fit minmax(220px, 1fr) grid was wrapping the 5 settings as
4 + 1, orphaning the PLM-model dropdown on its own row. Move to an
explicit 6-track grid where the three number inputs each span 2
(row 1, 3-up) and the two dropdowns each span 3 (row 2, 2-up). Both
rows sum to the full width — no orphan, and the dropdowns get the
wider space they need for long option labels like "Saccharomyces
cerevisiae". Single column below 880 px so labels don't truncate.

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

Files changed (2) hide show
  1. dee/static/app.css +18 -2
  2. dee/static/index.html +3 -3
dee/static/app.css CHANGED
@@ -1144,9 +1144,25 @@ input:focus, textarea:focus, select:focus {
1144
  /* ============================================================ SETTINGS */
1145
 
1146
  .setting-grid {
 
 
 
 
1147
  display: grid;
1148
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
1149
- gap: 18px;
 
 
 
 
 
 
 
 
 
 
 
 
1150
  }
1151
  .setting { display: flex; flex-direction: column; gap: 5px; }
1152
  .setting-name {
 
1144
  /* ============================================================ SETTINGS */
1145
 
1146
  .setting-grid {
1147
+ /* 6-column grid so we can place 3 narrow number fields across row 1
1148
+ (each spans 2) and 2 wider dropdown fields across row 2 (each spans 3).
1149
+ Result is a 3-up / 2-up arrangement where both rows sum to the full
1150
+ width — no orphan field on the second row. */
1151
  display: grid;
1152
+ grid-template-columns: repeat(6, 1fr);
1153
+ gap: 18px 22px;
1154
+ }
1155
+ .setting-grid > .setting:nth-child(1),
1156
+ .setting-grid > .setting:nth-child(2),
1157
+ .setting-grid > .setting:nth-child(3) { grid-column: span 2; }
1158
+ .setting-grid > .setting:nth-child(4),
1159
+ .setting-grid > .setting:nth-child(5) { grid-column: span 3; }
1160
+ @media (max-width: 880px) {
1161
+ /* On narrower viewports the 6-track grid leaves the dropdown labels
1162
+ (e.g. "Saccharomyces cerevisiae") truncated. Collapse to a single
1163
+ column — each label/input pair stacks cleanly, no orphan row. */
1164
+ .setting-grid { grid-template-columns: 1fr; gap: 14px; }
1165
+ .setting-grid > .setting:nth-child(n) { grid-column: auto; }
1166
  }
1167
  .setting { display: flex; flex-direction: column; gap: 5px; }
1168
  .setting-name {
dee/static/index.html CHANGED
@@ -7,7 +7,7 @@
7
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
8
  app.js change. Bump these numbers whenever you ship a frontend update —
9
  without them, users keep getting the stale file for up to a week. -->
10
- <link rel="stylesheet" href="/static/app.css?v=20260523-4" />
11
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
12
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
13
  <!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
@@ -687,7 +687,7 @@
687
 
688
  <!-- Cloning reference data must load before app.js so the Designer
689
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
690
- <script src="/static/cloning_db.js?v=20260523-4" defer></script>
691
- <script src="/static/app.js?v=20260523-4" defer></script>
692
  </body>
693
  </html>
 
7
  <!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
8
  app.js change. Bump these numbers whenever you ship a frontend update —
9
  without them, users keep getting the stale file for up to a week. -->
10
+ <link rel="stylesheet" href="/static/app.css?v=20260523-5" />
11
  <link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
12
  <link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
13
  <!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
 
687
 
688
  <!-- Cloning reference data must load before app.js so the Designer
689
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
690
+ <script src="/static/cloning_db.js?v=20260523-5" defer></script>
691
+ <script src="/static/app.js?v=20260523-5" defer></script>
692
  </body>
693
  </html>