Fix terminal sizing

This commit is contained in:
GitHub Copilot
2026-01-27 22:38:51 +00:00
parent 9ea4e18fcc
commit 26489567cb
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "textual-webterm" name = "textual-webterm"
version = "0.3.18" version = "0.3.19"
description = "Serve terminal sessions over the web" description = "Serve terminal sessions over the web"
authors = ["Will McGugan <will@textualize.io>"] authors = ["Will McGugan <will@textualize.io>"]
license = "MIT" license = "MIT"
+9 -2
View File
@@ -849,8 +849,15 @@ class LocalServer:
<link rel=\"stylesheet\" href=\"/static/css/xterm.css\"> <link rel=\"stylesheet\" href=\"/static/css/xterm.css\">
<link rel=\"stylesheet\" href=\"/static/monospace.css\"> <link rel=\"stylesheet\" href=\"/static/monospace.css\">
<style> <style>
body {{ background: #0c181f; margin: 0; padding: 0; }} html, body {{ width: 100%; height: 100%; }}
.textual-terminal {{ width: 100vw; height: 100vh; }} body {{ background: #0c181f; margin: 0; padding: 0; overflow: hidden; }}
.textual-terminal {{ width: 100%; height: 100%; }}
.textual-terminal .xterm,
.textual-terminal .xterm-viewport,
.textual-terminal .xterm-screen {{
width: 100%;
height: 100%;
}}
</style> </style>
</head> </head>
<body> <body>