Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Support iOS notch and Dynamic Island in header and layout
Maximilian Roos20dadcb2e746
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scssindex 08febbbbb..56f0a764e 100644--- a/docs/sass/custom.scss+++ b/docs/sass/custom.scss@@ -89,20 +89,47 @@ h4 {// ============================================================================header {- height: var(--wt-header-height);+ // Height includes safe-area-inset so content isn't compressed on notched devices+ height: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));box-sizing: border-box; // Include border in heightbackground-color: var(--wt-color-bg-soft) !important;border-bottom: 1px solid var(--wt-color-border-subtle);padding: 0 50px;+ // iOS safe area: push content below notch/Dynamic Island+ padding-top: env(safe-area-inset-top, 0px);box-shadow: none !important;position: sticky;top: 0;- // Z-index hierarchy: overlay(199) < menu(200) < header(201)- // Header must be above menu so the toggle button in the header remains clickable- // when the menu is open (menu slides out from under the header)+ // Z-index hierarchy: overlay(199) < scrim(200) = menu(200) < header(201)+ // Header on top so toggle button remains clickable when menu is openz-index: 201;}+// iOS 26 Liquid Glass fix: solid scrim behind translucent browser chrome+// Safari's translucent URL bar samples underlying content - this ensures it+// samples a stable solid color (header background) instead of scrolling content.+// Hidden on non-iOS to avoid unnecessary DOM/paint cost.+.ios-chrome-scrim {+ display: none;+}++@supports (-webkit-touch-callout: none) {+ .ios-chrome-scrim {+ display: block;+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ // Cover safe area inset plus header height so the browser chrome+ // always samples this solid color, not scrolling content beneath+ height: calc(env(safe-area-inset-top) + var(--wt-header-height));+ background: var(--wt-color-bg-soft);+ // Below header (201) so header remains interactive+ z-index: 200;+ pointer-events: none;+ }+}+.logo {font-family: var(--wt-font-sans);font-weight: 600;@@ -606,8 +633,9 @@ footer {background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(254, 243, 199, 0.7) 0%, transparent 60%),radial-gradient(ellipse 50% 40% at 30% 70%, rgba(251, 243, 219, 0.5) 0%, transparent 50%),var(--wt-color-bg-soft) !important;- height: calc(100dvh - var(--wt-header-height)) !important;- max-height: calc(100dvh - var(--wt-header-height)) !important;+ // Account for header height (which includes safe-area-inset on iOS)+ height: calc(100dvh - var(--wt-header-height) - env(safe-area-inset-top, 0px)) !important;+ max-height: calc(100dvh - var(--wt-header-height) - env(safe-area-inset-top, 0px)) !important;padding: 4rem 40px 3rem;position: relative;display: flex;@@ -816,11 +844,11 @@ ul > li::marker {.mobile-menu {display: none;position: fixed;- // --wt-header-height updates to 50px in @media (max-width: 768px)- top: var(--wt-header-height);+ // Position below header (which may include safe-area-inset on iOS)+ 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));+ height: calc(100dvh - 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;@@ -916,8 +944,11 @@ body.mobile-menu-open {}header {+ // Height includes safe-area-inset so content isn't compressed+ height: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));padding: 10px 20px;- height: var(--wt-header-height);+ // Push content below notch/Dynamic Island+ padding-top: calc(env(safe-area-inset-top, 0px) + 10px);display: flex;flex-direction: row;align-items: center;@@ -948,7 +979,8 @@ body.mobile-menu-open {}.hero {- height: calc(100dvh - var(--wt-header-height));+ // Account for header height (which includes safe-area-inset on iOS)+ height: calc(100dvh - var(--wt-header-height) - env(safe-area-inset-top, 0px));padding: 2rem 20px;flex-direction: column;gap: 2rem;diff --git a/docs/templates/base.html b/docs/templates/base.htmlindex c449dd742..e7258ae42 100644--- a/docs/templates/base.html+++ b/docs/templates/base.html@@ -79,6 +79,8 @@{% endblock head %}{% block header %}+<!-- iOS 26 Liquid Glass fix: solid scrim behind translucent browser chrome -->+<div class="ios-chrome-scrim" aria-hidden="true"></div><header><button class="mobile-menu-toggle" aria-label="Open menu" aria-expanded="false"><svg class="menu-icon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">diff --git a/docs/themes/juice/templates/index.html b/docs/themes/juice/templates/index.htmlindex d2567452d..027a7f059 100644--- a/docs/themes/juice/templates/index.html+++ b/docs/themes/juice/templates/index.html@@ -5,7 +5,7 @@<head><meta charset="UTF-8"><title>{% block title %}{{ config.title }}{% endblock title %}</title>- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">{% block favicon %}<link rel="icon" type="image/png" href="/favicon.ico">{% endblock favicon %}