Skip to content

Commit 3d5da17

Browse files
authored
fix: sync demo styles and remove shell suffix from title (#68)
1 parent 0e724d5 commit 3d5da17

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

demo/bin/demo.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,22 @@ const HTML_TEMPLATE = `<!doctype html>
171171
}
172172
173173
.terminal-content {
174-
padding: 0;
175-
min-height: 400px;
176-
height: 60vh;
174+
height: 600px;
175+
padding: 16px;
176+
background: #1e1e1e;
177177
position: relative;
178+
overflow: hidden;
178179
}
179180
180-
#terminal {
181-
position: absolute;
182-
top: 0;
183-
left: 0;
184-
right: 0;
185-
bottom: 0;
186-
overflow: hidden;
181+
/* Ensure terminal canvas can handle scrolling */
182+
.terminal-content canvas {
183+
display: block;
184+
}
185+
186+
@media (max-width: 768px) {
187+
.terminal-content {
188+
height: 500px;
189+
}
187190
}
188191
</style>
189192
</head>
@@ -195,15 +198,13 @@ const HTML_TEMPLATE = `<!doctype html>
195198
<div class="light yellow"></div>
196199
<div class="light green"></div>
197200
</div>
198-
<span class="title">ghostty-web — shell</span>
201+
<span class="title">ghostty-web</span>
199202
<div class="connection-status">
200203
<div class="status-dot connecting" id="status-dot"></div>
201204
<span id="status-text">Connecting...</span>
202205
</div>
203206
</div>
204-
<div class="terminal-content">
205-
<div id="terminal"></div>
206-
</div>
207+
<div class="terminal-content" id="terminal"></div>
207208
</div>
208209
209210
<script type="module">

0 commit comments

Comments
 (0)