Improve mobile toolbar layout and regenerate web example/x libraries#67
Conversation
- add auto-generated `examples-library.js` and `x-library.js` for bundled examples/x packages - refine mobile toolbar flex behavior and button sizing to prevent overflow - increase mobile file panel/tree font sizing and touch target spacing
- Delete committed `web/examples-library.js` and `web/x-library.js` - Add both generated files to `web/.gitignore` so they stay untracked
Greptile SummaryThis PR improves mobile responsiveness of the web workspace UI by switching the toolbar to a stacked column layout on mobile, adds responsive sizing for the file panel, and ships two new auto-generated library files ( Key changes and findings:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
VP["Viewport width"] -->|"> 768px"| DT["Desktop toolbar\nflex-direction: row\ntop: 42px fixed height"]
VP -->|"≤ 768px"| MB["Mobile toolbar\nflex-direction: column\nheight: auto (NEW)"]
MB --> TL["toolbar-left row\n~30-35px"]
MB --> TB["#toolbar-buttons row\n~30-35px"]
MB --> PAD["padding: 8px top + 8px bottom"]
TL & TB & PAD --> TH["Estimated toolbar height\n~80-100px"]
TH -->|"Panels open"| PP["#tags-panel / #targets-panel\ntop: 82px (UNCHANGED)"]
PP -->|"top ≤ toolbar height"| OVR["⚠️ Panel overlaps toolbar"]
DT -->|"Panels open"| DP["#tags-panel / #targets-panel\ntop: 42px"]
DP --> OK["✅ Clears toolbar"]
|
- Compute `--floating-panel-top` from toolbar/mobile toggle bounds in JS - Use the CSS variable for tags/targets panel `top` instead of fixed values - Keep toolbar title text on one line to avoid layout shifts on small screens
Summary
web/examples-library.jswith updated embedded examples for the web workspace.web/x-library.jswithx/*package sources for browser-side library loading.web/index.htmlby stacking controls, enabling wrapping/flex sizing, and preventing button overflow.Testing
web/index.html.