fix(editor): on a narrow screen the graph editor has no width; below 900 px the panels become tabs
I maintainer di solito rispondono entro 1 giorno
@kalwalt ci sta già lavorando.
Dal 19/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
Found on a phone while measuring #134's shadow frame rate, and checked on dev at 5cbf149:
index.htmlsets<meta name="viewport" content="width=device-width, initial-scale=1.0">, so a phone lays the studio out at its real width: 360 to 430 CSS px in portrait..layoutisgrid-template-columns: 180px 1fr 380px(src/app/studio.css). The two fixed columns take 560 px. Below that, the editor's1frcolumn gets no width at all (.editor-panehasmin-width: 0): the graph is not drawn, and the preview column (stage, Properties, log) fills the screen. Nothing in the graph can be seen or changed.- Between 560 and about 800 px (a phone in landscape, a small tablet) the editor gets less than one node's width (
.studio-nodeis 230 px). - The code panel (#35) is
position: fixed; inset: 56px 392px 24px 192px: below 584 px it has a negative width.
It looks tied to the player only because coming back from it is when one looks at the studio again, often after turning the phone. The player hand-off ($('btn-player') in src/app/studio.ts) does not touch the editor.
Design
Below 900 px of window width (at 900 the editor keeps 340 px), the studio shows one panel at a time:
- A tab bar under the toolbar: Nodes (the palette and the assets panel), Graph (the editor), Properties (the inspector), Preview (the stage and the log). Graph is shown at startup. The tab shown is not saved.
- The panel shown takes the whole width and height under the bars. The others are
hidden. At 900 px and above the tab bar is hidden and the three columns are as today: the desktop layout does not change. - Adding a node from the Nodes tab adds it as today, then shows Graph, so the node is seen where it lands.
- A running preview keeps running while its tab is hidden. AR View sizes its canvas from the video, not from the stage (
mountArFrame,src/runtime/ar-frame.ts), so hiding the stage changes nothing in the picture; a test checks it. - The toolbar scrolls sideways below 900 px (
overflow-x: auto) rather than wrapping. It builds on #179, which keeps its controls on one line. - The code panel fills the window below 900 px, with a small margin, instead of the desktop insets.
Not in this issue:
- touch gestures in the editor (pan, pinch to zoom, dragging a node, making a wire). They are checked on a phone for the acceptance below; one that does not work gets its own issue;
- bigger touch targets and icon-only toolbar buttons;
- a "Zoom to fit" button.
Tasks
- Failing e2e tests first, in a spec of their own with a 390 × 844 viewport:
- at startup the Graph tab is shown, and the editor's box is at least 300 px wide and 300 px high;
- each tab shows its panel and hides the others;
- a click on a palette button in Nodes adds the node and shows Graph with the node in it;
- Run, then a switch to Graph and back to Preview: the canvas has the same size as before the switch;
- the code panel lies inside the window.
- One more test at the suite's viewport (1500 × 950): the tab bar is hidden and the three columns are there.
- The tab bar in
index.html, its CSS (one@media (max-width: 899px)block insrc/app/studio.css), and its few lines of script insrc/app/studio.ts. - README: a line on narrow screens, next to the phone and HTTPS note.
- A CHANGELOG line under Fixed.
Files
index.html, src/app/studio.css, src/app/studio.ts, tests/e2e/ (a new spec), README.md, CHANGELOG.md.
Acceptance
- On a phone in portrait and in landscape, the graph is visible and editable: a node can be added, moved, wired and removed. Walter checks it on his phone.
- At 900 px and above, the studio looks and works as before, and the e2e suite is green.
- No change to the graph format, the node catalog or the plugin API.
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 0
- Merge medio
- 2h 36m
- PR unite (30g)
- 92
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webarkit/webarkit-studio
-
editor good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
webarkit/webarkit-studio#16 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(editor): Escape closes the toolbar menus, and focus returns to the menu's buttonForse già presa @kalwalt l’ha presa oggi. Apertaeditor enhancement node-graph
webarkit/webarkit-studio#190 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(babylon): an environment whose prefiltering fails never settlesForse già presa @kalwalt l’ha presa 1 giorno fa. ApertaBabylonjs bug
webarkit/webarkit-studio#188 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(babylon): a texture or environment that fails to load stays in the scene until StopForse già presa @kalwalt l’ha presa 4 giorni fa. ApertaBabylonjs bug runtime
webarkit/webarkit-studio#185 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feat(editor): palette groups that collapse, sticky headings and a category barForse già presa @kalwalt l’ha presa 4 giorni fa. Apertaeditor enhancement
webarkit/webarkit-studio#180 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webarkit/webarkit-studio
Issue simili
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier captureForse già presa @jianyx1 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
volcengine/OpenViking#8354 ·
I maintainer di solito rispondono entro 1 giorno
-
frontend: Job: Details do not show completed or failed indexes or the per-index backoff limitsForse già presa @arshil42 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
kubernetes-sigs/headlamp#8630 ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightly-labs/openbot#15640 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
comp/desktop desktop/settings P2 tool/skills type/perf
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#159515 ·
I maintainer di solito rispondono entro 1 giorno