Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Give the model diff preview more height

6c6949205afafd6c57a17b91f734d7085dbe9968 · Keenan Nemetz · 8d ago · parent 7d989146

Give the model diff preview more height

The fixed 320px box was shorter than the wide panes a two-model diff draws, so the toolbar and orientation cube crowded the model. Follow the viewport like a full-width preview, capped a little lower because two panes may sit side by side.

server/web/static/vole.css +3−2

@@ -1374,8 +1374,9 @@ pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1374 1374 pointer-events: auto;
1375 1375 z-index: 3;
1376 1376 }
1377 /* A diff pane is narrower and there may be two of them, so the box is shorter. */
1378 .media-diff .model-viewer { height: 320px; min-height: 220px; margin: 0; }
1377 /* A diff pane is narrower and there may be two of them, so the box follows
1378 the viewport but stays a little shorter than a full-width preview. */
1379 .media-diff .model-viewer { height: min(60vh, 520px); min-height: 320px; margin: 0; }
1379 1380
1380 1381 .media-diff .model-cube { width: 96px; height: 96px; perspective: 520px; }
1381 1382 .media-diff .model-cube-stage {