Skip to content

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

feat: make images horizontally scrollable and improve remove docs

Maximilian Roos33647913b1ed
diff --git a/docs/content/remove.md b/docs/content/remove.md
index 40bf3380f..62cf10432 100644
--- a/docs/content/remove.md
+++ b/docs/content/remove.md
@@ -47,7 +47,7 @@ Use `-D` to force-delete unmerged branches. Use `--no-delete-branch` to keep the
Removal runs in the background by default (returns immediately). Logs are written to `.git/wt-logs/{branch}-remove.log`. Use `--no-background` to run in the foreground.
-Arguments resolve by path first, then branch name—see [wt switch](@/switch.md#path-first-lookup). Shortcuts: `@` (current), `-` (previous), `^` (main worktree).
+Arguments resolve by path first, then branch name. [Shortcuts](@/switch.md#shortcuts): `@` (current), `-` (previous), `^` (main worktree).
## See also
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scss
index 7ff09ebe4..ae33effc5 100644
--- a/docs/sass/custom.scss
+++ b/docs/sass/custom.scss
@@ -283,6 +283,20 @@ main {
margin-bottom: 0.75rem;
}
+// Images - horizontally scrollable, never shrink
+.content p:has(> img) {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+}
+
+.content img {
+ display: block;
+ max-width: none; // Don't shrink to fit container
+ border-radius: 0.5rem;
+ border: 1px solid var(--wt-color-border-subtle);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+}
+
// Tighten spacing between paragraphs and code blocks
.content p + pre,
.content p + .terminal,
diff --git a/src/cli.rs b/src/cli.rs
index 25ca53fde..a68fd9c01 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1266,7 +1266,7 @@ Use `-D` to force-delete unmerged branches. Use `--no-delete-branch` to keep the
Removal runs in the background by default (returns immediately). Logs are written to `.git/wt-logs/{branch}-remove.log`. Use `--no-background` to run in the foreground.
-Arguments resolve by path first, then branch name—see [wt switch](@/switch.md#path-first-lookup). Shortcuts: `@` (current), `-` (previous), `^` (main worktree).
+Arguments resolve by path first, then branch name. [Shortcuts](@/switch.md#shortcuts): `@` (current), `-` (previous), `^` (main worktree).
## See also
diff --git a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
index 9f26bed17..2030efec4 100644
--- a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
@@ -78,7 +78,7 @@ Use -D to force-delete unmerged branches. Use --no-delete-branch
Removal runs in the background by default (returns immediately). Logs are written to .git/wt-logs/{branch}-remove.log. Use --no-background to run in the foreground.
-Arguments resolve by path first, then branch name—see wt switch. Shortcuts: @ (current), - (previous), ^ (main worktree).
+Arguments resolve by path first, then branch name. Shortcuts: @ (current), - (previous), ^ (main worktree).
See also