Spaces:
Sleeping
Sleeping
Tengo Gzirishvili Claude Opus 4.8 commited on
Commit ·
fbfb3da
1
Parent(s): 0360d9f
Mobile: stack section headers + kill iOS focus-zoom on inputs
Browse filesThe engine was rough on phones. Fixes (all scoped to existing mobile
breakpoints — desktop unchanged):
- .card-header was a 3-column flex row (kicker | italic title | sub)
crammed into ~340px, wrapping 'Provide a wild-type' one word per line.
Now stacks vertically on <=540px. Applies to every section header incl.
the CRISPR tool's, and the results header (Save / Export) stacks tidily.
- Bumped every text control to 16px on mobile so iOS Safari stops zooming
in on focus (then forcing a pinch-back): .paste-shell textarea + gutter
(kept equal so line numbers stay aligned), .view--crispr .crispr-input
(was 11.5px), .order-field input.
Cache-buster -> v=20260601-mobile.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- dee/static/app.css +20 -6
- dee/static/index.html +2 -2
dee/static/app.css
CHANGED
|
@@ -3368,8 +3368,17 @@ body.sidebar-open .sidebar-scrim {
|
|
| 3368 |
.workspace { padding: 18px 14px 28px; max-width: 100%; }
|
| 3369 |
|
| 3370 |
.card { padding: 18px 16px; border-radius: var(--r-3); }
|
| 3371 |
-
|
| 3372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3373 |
.card-sub { font-size: 11px; }
|
| 3374 |
.step-num { width: 26px; height: 26px; font-size: 11px; }
|
| 3375 |
|
|
@@ -3401,9 +3410,12 @@ body.sidebar-open .sidebar-scrim {
|
|
| 3401 |
.dz-copy span { font-size: 12px; }
|
| 3402 |
.dz-formats { font-size: 10px; gap: 3px; }
|
| 3403 |
|
| 3404 |
-
|
| 3405 |
-
|
| 3406 |
-
|
|
|
|
|
|
|
|
|
|
| 3407 |
.paste-actions { flex-direction: column; align-items: stretch; gap: 8px; }
|
| 3408 |
.paste-stats { text-align: center; }
|
| 3409 |
|
|
@@ -3416,6 +3428,8 @@ body.sidebar-open .sidebar-scrim {
|
|
| 3416 |
|
| 3417 |
.card-header.results-header { flex-wrap: wrap; }
|
| 3418 |
.results-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
|
|
|
|
|
|
|
| 3419 |
.table-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
|
| 3420 |
.table-count { text-align: right; }
|
| 3421 |
|
|
@@ -4945,7 +4959,7 @@ h3, h4 {
|
|
| 4945 |
* Long spacers should not push the table off-screen. */
|
| 4946 |
@media (max-width: 540px) {
|
| 4947 |
.view--crispr .hero { padding-bottom: 16px; }
|
| 4948 |
-
.view--crispr .crispr-input { font-size:
|
| 4949 |
.crispr-table .crispr-spacer { white-space: normal; }
|
| 4950 |
.crispr-table .crispr-spacer code {
|
| 4951 |
display: block;
|
|
|
|
| 3368 |
.workspace { padding: 18px 14px 28px; max-width: 100%; }
|
| 3369 |
|
| 3370 |
.card { padding: 18px 16px; border-radius: var(--r-3); }
|
| 3371 |
+
/* Stack the section header on phones — kicker / title / sub were three
|
| 3372 |
+
flex columns crammed into ~340px, wrapping "Provide a wild-type" one
|
| 3373 |
+
word per line. Vertical stack reads cleanly. */
|
| 3374 |
+
.card-header {
|
| 3375 |
+
flex-direction: column;
|
| 3376 |
+
align-items: flex-start;
|
| 3377 |
+
gap: 6px;
|
| 3378 |
+
margin-bottom: 14px;
|
| 3379 |
+
padding-bottom: 12px;
|
| 3380 |
+
}
|
| 3381 |
+
.card-header h2 { font-size: 17px; }
|
| 3382 |
.card-sub { font-size: 11px; }
|
| 3383 |
.step-num { width: 26px; height: 26px; font-size: 11px; }
|
| 3384 |
|
|
|
|
| 3410 |
.dz-copy span { font-size: 12px; }
|
| 3411 |
.dz-formats { font-size: 10px; gap: 3px; }
|
| 3412 |
|
| 3413 |
+
/* 16px on the paste editor (gutter + textarea kept equal so the line
|
| 3414 |
+
numbers stay aligned) — anything smaller makes iOS Safari zoom in on
|
| 3415 |
+
focus, then the user has to pinch back out. */
|
| 3416 |
+
.paste-shell { font-size: 16px; }
|
| 3417 |
+
.paste-gutter { min-width: 42px; padding: 9px 8px 9px 10px; font-size: 16px; }
|
| 3418 |
+
.paste-shell textarea { font-size: 16px; }
|
| 3419 |
.paste-actions { flex-direction: column; align-items: stretch; gap: 8px; }
|
| 3420 |
.paste-stats { text-align: center; }
|
| 3421 |
|
|
|
|
| 3428 |
|
| 3429 |
.card-header.results-header { flex-wrap: wrap; }
|
| 3430 |
.results-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
|
| 3431 |
+
/* 16px on every text control so iOS Safari doesn't zoom in on focus. */
|
| 3432 |
+
.order-field input { font-size: 16px; }
|
| 3433 |
.table-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
|
| 3434 |
.table-count { text-align: right; }
|
| 3435 |
|
|
|
|
| 4959 |
* Long spacers should not push the table off-screen. */
|
| 4960 |
@media (max-width: 540px) {
|
| 4961 |
.view--crispr .hero { padding-bottom: 16px; }
|
| 4962 |
+
.view--crispr .crispr-input { font-size: 16px; min-height: 140px; } /* 16px: no iOS focus-zoom */
|
| 4963 |
.crispr-table .crispr-spacer { white-space: normal; }
|
| 4964 |
.crispr-table .crispr-spacer code {
|
| 4965 |
display: block;
|
dee/static/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 23 |
app.js change. Bump these numbers whenever you ship a frontend update —
|
| 24 |
without them, users keep getting the stale file for up to a week. -->
|
| 25 |
-
<link rel="stylesheet" href="/static/app.css?v=20260601-
|
| 26 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 27 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 28 |
<!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
|
|
@@ -1176,6 +1176,6 @@
|
|
| 1176 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1177 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1178 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1179 |
-
<script src="/static/app.js?v=20260601-
|
| 1180 |
</body>
|
| 1181 |
</html>
|
|
|
|
| 22 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 23 |
app.js change. Bump these numbers whenever you ship a frontend update —
|
| 24 |
without them, users keep getting the stale file for up to a week. -->
|
| 25 |
+
<link rel="stylesheet" href="/static/app.css?v=20260601-mobile" />
|
| 26 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 27 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 28 |
<!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
|
|
|
|
| 1176 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1177 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1178 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1179 |
+
<script src="/static/app.js?v=20260601-mobile" defer></script>
|
| 1180 |
</body>
|
| 1181 |
</html>
|