tejani commited on
Commit
ea39753
·
verified ·
1 Parent(s): 8223055

Update public/index.html

Browse files
Files changed (1) hide show
  1. public/index.html +5 -0
public/index.html CHANGED
@@ -6,17 +6,22 @@
6
  <title>Web Terminal</title>
7
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@4.19.0/css/xterm.css" />
8
  <script src="https://cdn.jsdelivr.net/npm/xterm@4.19.0/lib/xterm.js"></script>
 
9
  <style>
 
10
  html, body {
11
  margin: 0;
12
  padding: 0;
13
  width: 100%;
14
  height: 100vh;
15
  overflow: hidden;
 
16
  }
 
17
  #terminal {
18
  width: 100%;
19
  height: 100vh;
 
20
  }
21
  </style>
22
  </head>
 
6
  <title>Web Terminal</title>
7
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@4.19.0/css/xterm.css" />
8
  <script src="https://cdn.jsdelivr.net/npm/xterm@4.19.0/lib/xterm.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.5.0/lib/xterm-addon-fit.js"></script>
10
  <style>
11
+ /* Ensure the HTML and body take up the full viewport */
12
  html, body {
13
  margin: 0;
14
  padding: 0;
15
  width: 100%;
16
  height: 100vh;
17
  overflow: hidden;
18
+ background: #000; /* Ensure background is black to match terminal */
19
  }
20
+ /* Make the terminal container full-screen */
21
  #terminal {
22
  width: 100%;
23
  height: 100vh;
24
+ display: block;
25
  }
26
  </style>
27
  </head>