codex-webstrapper 0.9.5 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bridge-shim.js +51 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-webstrapper",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "type": "module",
5
5
  "description": "Web wrapper for Codex desktop assets with bridge + token auth",
6
6
  "license": "MIT",
@@ -339,10 +339,9 @@
339
339
  -webkit-text-size-adjust: 100% !important;
340
340
  }
341
341
 
342
- /* Header overflow fix */
342
+ /* Header constrain to viewport */
343
343
  .h-toolbar {
344
344
  max-width: 100vw !important;
345
- overflow: hidden !important;
346
345
  }
347
346
 
348
347
  .h-toolbar button {
@@ -354,18 +353,19 @@
354
353
  }
355
354
 
356
355
  /* Prevent iOS auto-zoom on focus (triggers when font-size < 16px) */
357
- input, textarea, select, [contenteditable="true"] {
356
+ input, textarea, select {
358
357
  font-size: 16px !important;
359
358
  max-width: 100% !important;
360
359
  box-sizing: border-box !important;
361
360
  }
362
361
 
363
- /* Disable double-tap zoom */
364
- * {
365
- touch-action: manipulation;
362
+ [contenteditable="true"] {
363
+ max-width: 100% !important;
364
+ box-sizing: border-box !important;
366
365
  }
367
366
 
368
367
  [contenteditable="true"]:focus {
368
+ font-size: 16px !important;
369
369
  scroll-margin-bottom: 20px;
370
370
  }
371
371
 
@@ -424,7 +424,10 @@
424
424
  --spacing-token-sidebar: 0px !important;
425
425
  }
426
426
 
427
- /* Sidebar becomes full-screen overlay when open */
427
+ /* Sidebar becomes full-screen overlay when open.
428
+ When collapsed the app sets opacity-0 but the element still covers
429
+ the screen (translate is 0 because we zeroed the token). We must
430
+ disable pointer events so it doesn't block taps on main content. */
428
431
  .window-fx-sidebar-surface,
429
432
  .w-token-sidebar {
430
433
  width: 85vw !important;
@@ -432,6 +435,15 @@
432
435
  z-index: 50 !important;
433
436
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
434
437
  background-color: rgb(24, 24, 24) !important;
438
+ pointer-events: none !important;
439
+ transition: opacity 0.3s ease, pointer-events 0s linear 0.3s !important;
440
+ }
441
+
442
+ /* Re-enable pointer events only when sidebar is visible (open) */
443
+ .window-fx-sidebar-surface.opacity-100,
444
+ .w-token-sidebar.opacity-100 {
445
+ pointer-events: auto !important;
446
+ transition: opacity 0.3s ease, pointer-events 0s linear 0s !important;
435
447
  }
436
448
 
437
449
  /* Main content takes full width */
@@ -441,12 +453,41 @@
441
453
  width: 100vw !important;
442
454
  }
443
455
 
444
- /* Header left section collapse to fit phone */
456
+ /* Header toolbarswipeable so all buttons remain accessible.
457
+ When the sidebar is collapsed the portal area expands and can
458
+ push right-side buttons off-screen; scrolling keeps them
459
+ reachable via horizontal swipe. */
460
+ .h-toolbar {
461
+ overflow-x: auto !important;
462
+ overflow-y: hidden !important;
463
+ -webkit-overflow-scrolling: touch !important;
464
+ scrollbar-width: none !important;
465
+ }
466
+ .h-toolbar::-webkit-scrollbar {
467
+ display: none !important;
468
+ }
469
+
470
+ /* Prevent header-left from consuming more than half the bar.
471
+ The app sets an inline min-width via CSS vars that over-allocates
472
+ space for the portal area — override it so buttons fit. */
445
473
  .app-header-left {
446
474
  width: auto !important;
475
+ min-width: 0 !important;
447
476
  max-width: 50vw !important;
448
- flex-shrink: 1 !important;
449
- padding-left: 8px !important;
477
+ flex-shrink: 0 !important;
478
+ padding-left: 4px !important;
479
+ padding-right: 0 !important;
480
+ }
481
+
482
+ /* Collapse the empty portal gap when sidebar is hidden */
483
+ .app-header-left-portal {
484
+ gap: 0 !important;
485
+ padding-right: 2px !important;
486
+ }
487
+
488
+ /* Keep right-side buttons from shrinking below usable size */
489
+ .h-toolbar button {
490
+ flex-shrink: 0 !important;
450
491
  }
451
492
 
452
493
  /* Use stable viewport height */