From 8f62a3abca1ff579eca47a1014f5c1d36e020753 Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Tue, 25 Nov 2025 20:43:08 -0500 Subject: [PATCH] fix: sync demo styles and remove shell suffix from title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change title from 'ghostty-web — shell' to 'ghostty-web' - Sync terminal container styles from index.html to demo.js: - height: 600px (was 60vh) - padding: 16px (was 0) - Add responsive breakpoint for mobile - Simplify HTML structure by merging nested terminal div --- demo/bin/demo.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/demo/bin/demo.js b/demo/bin/demo.js index bc29333..d652e68 100644 --- a/demo/bin/demo.js +++ b/demo/bin/demo.js @@ -171,19 +171,22 @@ const HTML_TEMPLATE = ` } .terminal-content { - padding: 0; - min-height: 400px; - height: 60vh; + height: 600px; + padding: 16px; + background: #1e1e1e; position: relative; + overflow: hidden; } - #terminal { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow: hidden; + /* Ensure terminal canvas can handle scrolling */ + .terminal-content canvas { + display: block; + } + + @media (max-width: 768px) { + .terminal-content { + height: 500px; + } } @@ -195,15 +198,13 @@ const HTML_TEMPLATE = `
- ghostty-web — shell + ghostty-web
Connecting...
-
-
-
+