@ghostty-web/demo 0.2.1-next.16.gdc59c79 → 0.2.1-next.18.g3d5da17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/demo.js +15 -14
  2. package/package.json +2 -2
package/bin/demo.js CHANGED
@@ -171,19 +171,22 @@ const HTML_TEMPLATE = `<!doctype html>
171
171
  }
172
172
 
173
173
  .terminal-content {
174
- padding: 0;
175
- min-height: 400px;
176
- height: 60vh;
174
+ height: 600px;
175
+ padding: 16px;
176
+ background: #1e1e1e;
177
177
  position: relative;
178
+ overflow: hidden;
178
179
  }
179
180
 
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
+ }
187
190
  }
188
191
  </style>
189
192
  </head>
@@ -195,15 +198,13 @@ const HTML_TEMPLATE = `<!doctype html>
195
198
  <div class="light yellow"></div>
196
199
  <div class="light green"></div>
197
200
  </div>
198
- <span class="title">ghostty-web — shell</span>
201
+ <span class="title">ghostty-web</span>
199
202
  <div class="connection-status">
200
203
  <div class="status-dot connecting" id="status-dot"></div>
201
204
  <span id="status-text">Connecting...</span>
202
205
  </div>
203
206
  </div>
204
- <div class="terminal-content">
205
- <div id="terminal"></div>
206
- </div>
207
+ <div class="terminal-content" id="terminal"></div>
207
208
  </div>
208
209
 
209
210
  <script type="module">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostty-web/demo",
3
- "version": "0.2.1-next.16.gdc59c79",
3
+ "version": "0.2.1-next.18.g3d5da17",
4
4
  "description": "Cross-platform demo server for ghostty-web terminal emulator",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@lydell/node-pty": "^1.0.1",
15
- "ghostty-web": "0.2.1-next.16.gdc59c79",
15
+ "ghostty-web": "0.2.1-next.18.g3d5da17",
16
16
  "ws": "^8.18.0"
17
17
  },
18
18
  "files": [