From a3301e0a3a3d85c244445731c0b977269dbc467e Mon Sep 17 00:00:00 2001
From: SnapOtter
Date: Mon, 22 Jun 2026 22:48:40 +0800
Subject: [PATCH] docs: keep hero install command on one line and make the
whole box copyable (#330)
The docs.snapotter.com hero command wrapped onto two lines. Switch the
command from pre-wrap to nowrap with internal horizontal scroll, widen the
box, and nudge the font down so it sits on one line on desktop and scrolls
inside its box on mobile without the page overflowing.
Move the copy action onto the whole command box (pointer cursor + hover
affordance) so clicking anywhere copies, while keeping the real Copy button
(now click.stop so it does not double-fire, with a min-width to avoid layout
shift between the Copy and Copied states).
---
apps/docs/.vitepress/theme/DocsHome.vue | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/apps/docs/.vitepress/theme/DocsHome.vue b/apps/docs/.vitepress/theme/DocsHome.vue
index 8d4791b4..ca6d97c7 100644
--- a/apps/docs/.vitepress/theme/DocsHome.vue
+++ b/apps/docs/.vitepress/theme/DocsHome.vue
@@ -48,9 +48,9 @@ function copyCommand() {
157 tools for image, video, audio, PDF & data, running entirely on your
hardware. Choose your path below, or get running in one command: