From 227f397c06abcd722ea0d6e3d70b453f0da9e37c Mon Sep 17 00:00:00 2001 From: wipedlifepotato Date: Wed, 10 Sep 2025 22:20:36 +0700 Subject: [PATCH] patch: fix css for webconsole --- contrib/webconsole/hacker.css | 4 +++- contrib/webconsole/style.css | 4 +++- daemon/HTTPServerResources.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/webconsole/hacker.css b/contrib/webconsole/hacker.css index 93baf564..5d93be50 100644 --- a/contrib/webconsole/hacker.css +++ b/contrib/webconsole/hacker.css @@ -98,12 +98,14 @@ a:hover, a.button.selected, .slide label:hover, button[type=submit]:hover { } .content { - float: left; +/* float: left;*/ font-size: 1em; margin-left: 2em; padding: 4px; max-width: 50em; overflow: auto; + left: 35%; + position: absolute; } .tunnel.established { diff --git a/contrib/webconsole/style.css b/contrib/webconsole/style.css index ea8ffd4f..c3aa4e98 100644 --- a/contrib/webconsole/style.css +++ b/contrib/webconsole/style.css @@ -92,12 +92,14 @@ a.button { } .content { - float: left; +/* float: left;*/ font-size: 1em; margin-left: 2em; padding: 4px; max-width: 50em; overflow: auto; + left: 35%; + position: absolute; } .tunnel.established { diff --git a/daemon/HTTPServerResources.h b/daemon/HTTPServerResources.h index 1e5b6f75..011475a4 100644 --- a/daemon/HTTPServerResources.h +++ b/daemon/HTTPServerResources.h @@ -45,7 +45,7 @@ namespace http ".menu { display: block; float: left; overflow: hidden; padding: 4px; max-width: 12em; white-space: nowrap; text-overflow: ellipsis ;}\r\n" ".listitem { display: block; font-family: monospace; font-size: 1.2em; white-space: nowrap; }\r\n" ".tableitem { font-family: monospace; font-size: 1.2em; white-space: nowrap; }\r\n" - ".content { float: left; font-size: 1em; margin-left: 2em; padding: 4px; max-width: 50em; overflow: auto; }\r\n" + ".content { font-size: 1em; margin-left: 2em; padding: 4px; max-width: 50em; overflow: auto; position: absolute; left: 35%; }\r\n" ".tunnel.established { color: #56B734; }\r\n" ".tunnel.expiring { color: #D3AE3F; }\r\n" ".tunnel.failed { color: #D33F3F; }\r\n"