Tengo Gzirishvili Claude Sonnet 4.6 commited on
Commit
ee2eecc
·
1 Parent(s): 8f87141

Move engine theme toggle to topbar-left (fix collision with wrapper sign-in pill)

Browse files

On turingdna.com/app/, the landing's iframe wrapper overlays a fixed
"Sign in" pill at top-right (z-index 6) on top of the engine. The theme
toggle I added also lived top-right, so the two overlapped on mobile (the
engine already uses both top corners: hamburger left, toggle right — no
free corner for the pill).

Fix: left-align the topbar cluster (hamburger · "Engine" · toggle) instead
of space-between, and drop the toggle's margin-left:auto. The top-right
corner is now free for the wrapper's pill. Engine-only change; the wrapper
is unchanged.

Cache-buster → v=20260530-toggle-left.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. dee/static/app.css +7 -2
  2. dee/static/index.html +2 -2
dee/static/app.css CHANGED
@@ -412,7 +412,13 @@ kbd {
412
  padding: 0 32px;
413
  display: flex;
414
  align-items: center;
415
- justify-content: space-between;
 
 
 
 
 
 
416
  position: sticky;
417
  top: 0;
418
  z-index: 10;
@@ -3271,7 +3277,6 @@ input:focus, textarea:focus, select:focus {
3271
  * dark) and a sun in dark mode (tap → go light); the swap is pure CSS keyed
3272
  * off the <html data-theme> attribute. */
3273
  .theme-toggle {
3274
- margin-left: auto;
3275
  flex-shrink: 0;
3276
  display: inline-flex;
3277
  align-items: center;
 
412
  padding: 0 32px;
413
  display: flex;
414
  align-items: center;
415
+ /* Left-aligned cluster (hamburger · title · theme toggle). Was
416
+ * space-between, which parked the theme toggle in the top-right corner —
417
+ * where the landing's iframe wrapper overlays its fixed "Sign in" pill,
418
+ * so the two collided on the /app/ embed. Keeping the toggle on the left
419
+ * frees the top-right corner for that pill. */
420
+ justify-content: flex-start;
421
+ gap: 14px;
422
  position: sticky;
423
  top: 0;
424
  z-index: 10;
 
3277
  * dark) and a sun in dark mode (tap → go light); the swap is pure CSS keyed
3278
  * off the <html data-theme> attribute. */
3279
  .theme-toggle {
 
3280
  flex-shrink: 0;
3281
  display: inline-flex;
3282
  align-items: center;
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=20260530-darkdefault" />
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
@@ -1164,6 +1164,6 @@
1164
  <!-- Cloning reference data must load before app.js so the Designer
1165
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1166
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1167
- <script src="/static/app.js?v=20260530-darkdefault" defer></script>
1168
  </body>
1169
  </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=20260530-toggle-left" />
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
 
1164
  <!-- Cloning reference data must load before app.js so the Designer
1165
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1166
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1167
+ <script src="/static/app.js?v=20260530-toggle-left" defer></script>
1168
  </body>
1169
  </html>