Fix terminal font fallback

This commit is contained in:
GitHub Copilot
2026-01-22 00:34:11 +00:00
parent a0e31d43fd
commit 20d33a97f8
3 changed files with 17 additions and 3 deletions
+3 -1
View File
@@ -590,10 +590,12 @@ class LocalServer:
<script src=\"/static/js/textual.js\"></script>
<style>
body {{ background: #000; margin: 0; padding: 0; }}
/* textual-serve relies on injected sizing CSS; make it explicit so layout works even if JS/CSS fail */
.textual-terminal {{ width: 100vw; height: 100vh; }}
</style>
</head>
<body>
<div class=\"textual-terminal\" data-session-websocket-url={ws_url!r} data-font-size=\"16\"></div>
<div id=\"terminal\" class=\"textual-terminal\" data-session-websocket-url=\"{ws_url}\" data-font-size=\"16\"></div>
</body>
</html>"""
return web.Response(text=html_content, content_type="text/html")