diff --git a/apps/routerconsole/jsp/i2ptunnelmgr.jsp b/apps/routerconsole/jsp/i2ptunnelmgr.jsp index 58c476116c..a9faab8995 100644 --- a/apps/routerconsole/jsp/i2ptunnelmgr.jsp +++ b/apps/routerconsole/jsp/i2ptunnelmgr.jsp @@ -22,8 +22,11 @@ function requestAjax1() { ajax("/xhr1.jsp?requestURI=<%=request.getRequestURI()%>", "xhr", <%=intl.getRefresh()%>000); } function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); } function resizeFrame(f) { f.style.height = f.contentWindow.document.body.scrollHeight + "px"; } + function injectClass(f) { f.contentWindow.document.getElementsByTagName('body')[0].setAttribute('class', 'iframed'); } function init() { - resizeFrame(document.getElementById("i2ptunnelframe")); + f = document.getElementById("i2ptunnelframe"); + resizeFrame(f); + injectClass(f); initAjax(); } @@ -33,7 +36,7 @@

<%=intl._("I2P Tunnel Manager")%>

-
<% diff --git a/installer/resources/themes/console/dark/default.css b/installer/resources/themes/console/dark/default.css index b934eed196..81d53ef378 100644 --- a/installer/resources/themes/console/dark/default.css +++ b/installer/resources/themes/console/dark/default.css @@ -18,6 +18,10 @@ body { box-sizing: border-box; } +body.iframed { + background: transparent url('images/transparent.gif') !important; +} + div { -moz-box-sizing: border-box; box-sizing: border-box; @@ -213,6 +217,10 @@ hr { padding: 10px 20px; } +.iframed .panel { + margin: 16px auto -7px auto !important; +} + .panel .footer { float: right; padding: 4px; diff --git a/installer/resources/themes/console/dark/images/transparent.gif b/installer/resources/themes/console/dark/images/transparent.gif new file mode 100644 index 0000000000..50f0a77743 Binary files /dev/null and b/installer/resources/themes/console/dark/images/transparent.gif differ