mac/webchat: remove panel padding

This commit is contained in:
Peter Steinberger
2025-12-09 21:13:45 +00:00
parent c191df5434
commit 84ccde268e
2 changed files with 4 additions and 4 deletions

View File

@@ -7,11 +7,11 @@
<link rel="stylesheet" href="app.css">
<style>
html, body { height: 100%; margin: 0; padding: 0; }
#app { height: 100%; }
#app { height: 100%; padding: 0; margin: 0; }
</style>
</head>
<body>
<div id="app" style="padding:16px;font:14px -apple-system, BlinkMacSystemFont, sans-serif;color:#222">Booting web chat…</div>
<div id="app" style="font:14px -apple-system, BlinkMacSystemFont, sans-serif;color:#222">Booting web chat…</div>
<script type="module" src="webchat.bundle.js"></script>
</body>
</html>

View File

@@ -114,7 +114,7 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N
private func loadPlaceholder() {
let html = """
<html><body style='font-family:-apple-system;padding:24px;color:#888'>Connecting to web chat…</body></html>
<html><body style='font-family:-apple-system;margin:0;padding:0;display:flex;align-items:center;justify-content:center;height:100vh;color:#888'>Connecting to web chat…</body></html>
"""
self.webView.loadHTMLString(html, baseURL: nil)
}
@@ -290,7 +290,7 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N
private func showError(_ text: String) {
self.bootWatchTask?.cancel()
let html = """
<html><body style='font-family:-apple-system;padding:24px;color:#c00'>Web chat failed to connect.<br><br>\(
<html><body style='font-family:-apple-system;margin:0;padding:0;display:flex;align-items:center;justify-content:center;height:100vh;color:#c00'>Web chat failed to connect.<br><br>\(
text)</body></html>
"""
self.webView.loadHTMLString(html, baseURL: nil)