Skip to content

Commit 6bbb686

Browse files
committed
fix: resolve mobile column layout gap
- Fixed huge white gap between formatting toolbar and editor in mobile column view (≤1080px) - Fixed similar vertical layout gap in Presentation (PPT) mode on mobile - Prevented closed workspace sidebar from consuming vertical space in column flex layout
1 parent 66b2637 commit 6bbb686

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ TextAgent has undergone significant evolution since its inception. What started
459459

460460
| Date | Commits | Feature / Update |
461461
|------|---------|-----------------|
462+
| **2026-03-16** | | 📱 **Mobile Layout Gap Fix** — eliminated a massive white gap that appeared between the toolbar and editor/presentation preview on mobile devices (≤1080px) by fixing a CSS flexbox bug where the closed workspace sidebar still consumed vertical height in column mode |
462463
| **2026-03-16** | | 🐛 **File-Switch State Reset** — fixed Run All button staying in "Stop" mode when switching .md files; fixed document variables leaking across files; new `resetFileSessionState()` in `workspace.js` aborts execution, force-resets `_running` flag, clears Run All button/progress bar/variables/exec context on every file switch; new `forceReset()` in `exec-controller.js` for immediate hard-reset of internal state |
463464
| **2026-03-15** | | 🚀 **Run All Engine & TTS UX** — pre-execution model readiness check auto-loads all required models (AI + Kokoro TTS) before block execution starts; detailed `[RunAll]` console logging with `console.table` block summary, per-block timing, variable resolution status (✅/⚠), and completion summary; Stop button now works during model loading via `M._execAborted` cross-module flag; `ensureModelReadyAsync()` rewritten with fail-fast on missing consent/API key; compact preflight dialog (960px, smaller fonts, all 8 columns visible); `waitForModelReady()` handles Kokoro TTS via `M.tts.isKokoroReady()`; TTS card split into 3 buttons: ▶ Run (generate audio only), ▷ Play (replay stored audio), 💾 Save (download WAV); new `M.tts.generate()`, `playLastAudio()`, `isKokoroReady()`, `initKokoro()` APIs; AI model fallback in `run-requirements.js` correctly defaults to text models |
464465
| **2026-03-14** | | 🔗 **AI Variable Controls** — new unified 🔗 Vars button on AI and Agent cards opens combined dropdown with 📤 Output Variable (text input to name the block's result) and 📥 Input Variables (checkbox picker listing declared `@var:` names from other blocks + runtime vars); variable chaining enables multi-block AI pipelines (`@var: research``@input: research`); declared variables appear before execution with "declared" badge; Doc Variables Panel (`{•} Vars` toolbar button) now shows ⏳ Pending Vars section for declared-but-unexecuted variables; `@var:` and `@input:` directives stripped from displayed prompt text |
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Mobile Column Layout Gap — Fixed large white gap in mobile stacked view
2+
3+
- Fixed: Huge white gap between formatting toolbar and editor in mobile column view (≤1080px)
4+
- Fixed: Similar vertical layout gap in Presentation (PPT) mode on mobile
5+
- Prevented closed workspace sidebar from consuming vertical space in column flex layout
6+
7+
---
8+
9+
## Summary
10+
Fixed a layout bug where the workspace sidebar pushed the editor pane down in mobile/tablet stacked (column) view even when closed, creating a massive white gap.
11+
12+
---
13+
14+
## 1. Workspace Sidebar Mobile Layout Fix
15+
**Files:** `css/workspace.css`
16+
**What:** Added `height: 0` to the default `.workspace-sidebar` state instead of relying purely on `width: 0`, and restored `height: auto` when `.open`.
17+
**Impact:** Prevents the closed sidebar from acting as an invisible vertical spacer in the `flex-direction: column` layout (triggering at ≤1080px), completely eliminating the giant whitespace below the toolbar in both Split and PPT modes.
18+
19+
---
20+
21+
## Files Changed (1 total)
22+
23+
| File | Lines Changed | Type |
24+
|------|:---:|------|
25+
| `css/workspace.css` | +2 −1 | CSS Fix |

css/workspace.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@
66
.workspace-sidebar {
77
position: relative;
88
width: 0;
9+
height: 0;
910
min-width: 0;
1011
overflow: hidden;
1112
background: var(--header-bg);
1213
border-right: 1px solid var(--border-color);
1314
display: flex;
1415
flex-direction: column;
1516
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
16-
min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
17+
min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
18+
height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
1719
z-index: 10;
1820
flex-shrink: 0;
1921
}
2022

2123
.workspace-sidebar.open {
2224
width: 220px;
2325
min-width: 220px;
26+
height: auto;
2427
}
2528

2629
/* --- Sidebar Header --- */

0 commit comments

Comments
 (0)