Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Use svh units consistently to fix Firefox mobile scroll jank (#90)

Maximilian Roos33d0ae4f26ab
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scss
index a12bbd990..137937bbd 100644
--- a/docs/sass/custom.scss
+++ b/docs/sass/custom.scss
@@ -675,7 +675,7 @@ footer {
}
.hero-image {
- max-height: 55vh;
+ max-height: 55svh;
width: auto;
aspect-ratio: 1;
object-fit: contain;
@@ -872,7 +872,8 @@ ul > li::marker {
top: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));
left: 0;
width: min(260px, 70vw);
- height: calc(100dvh - var(--wt-header-height) - env(safe-area-inset-top, 0px));
+ // Use svh (small viewport) not dvh - dvh resizes during scroll, causing jank
+ height: calc(100svh - var(--wt-header-height) - env(safe-area-inset-top, 0px));
background: var(--wt-color-bg-elevated);
border-right: 1px solid var(--wt-color-border-subtle);
z-index: 200;