mac/webchat: remove panel padding
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
<link rel="stylesheet" href="app.css">
|
<link rel="stylesheet" href="app.css">
|
||||||
<style>
|
<style>
|
||||||
html, body { height: 100%; margin: 0; padding: 0; }
|
html, body { height: 100%; margin: 0; padding: 0; }
|
||||||
#app { height: 100%; }
|
#app { height: 100%; padding: 0; margin: 0; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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>
|
<script type="module" src="webchat.bundle.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N
|
|||||||
|
|
||||||
private func loadPlaceholder() {
|
private func loadPlaceholder() {
|
||||||
let html = """
|
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)
|
self.webView.loadHTMLString(html, baseURL: nil)
|
||||||
}
|
}
|
||||||
@@ -290,7 +290,7 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N
|
|||||||
private func showError(_ text: String) {
|
private func showError(_ text: String) {
|
||||||
self.bootWatchTask?.cancel()
|
self.bootWatchTask?.cancel()
|
||||||
let html = """
|
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>
|
text)</body></html>
|
||||||
"""
|
"""
|
||||||
self.webView.loadHTMLString(html, baseURL: nil)
|
self.webView.loadHTMLString(html, baseURL: nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user