From 9136b3e3f8e7793f2020be84175a75cf96a55142 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 21 Mar 2022 14:40:36 +0800 Subject: [PATCH] fix style --- src/ui/common.css | 4 ++++ src/ui/index.tis | 14 +++++++------- src/ui/msgbox.tis | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/ui/common.css b/src/ui/common.css index 23174c220..de724f298 100644 --- a/src/ui/common.css +++ b/src/ui/common.css @@ -376,6 +376,10 @@ div#msgbox div.set-password div.password { width: *; } +div#msgbox div.set-password div > input { + width: *; +} + div#msgbox div.set-password input { font-size: 1em; } diff --git a/src/ui/index.tis b/src/ui/index.tis index d43f12760..44f0182e0 100644 --- a/src/ui/index.tis +++ b/src/ui/index.tis @@ -226,9 +226,9 @@ class MyIdMenu: Reactor.Component { var configOptions = handler.get_options(); var old_relay = configOptions["relay-server"] || ""; var old_id = configOptions["custom-rendezvous-server"] || ""; - msgbox("custom-server", "ID/Relay Server", "
\ -
" + translate("ID Server") + ":
\ -
" + translate("Relay Server") + ":
\ + msgbox("custom-server", "ID/Relay Server", "
\ +
" + translate("ID Server") + ":
\ +
" + translate("Relay Server") + ":
\
\ ", function(res=null) { if (!res) return; @@ -253,9 +253,9 @@ class MyIdMenu: Reactor.Component { var old_username = socks5[1] || ""; var old_password = socks5[2] || ""; msgbox("custom-server", "Socks5 Proxy",
-
{translate("Hostname")}
-
{translate("Username")}
-
{translate("Password")}
+
{translate("Hostname")}:
+
{translate("Username")}:
+
{translate("Password")}:
, function(res=null) { if (!res) return; @@ -311,7 +311,7 @@ function editDirectAccessPort() { var port = p0 ? : ; msgbox("custom-direct-access-port", translate('Direct IP Access Settings'),
-
{translate('Port')}:{port}
+
{translate('Port')}:{port}
, function(res=null) { if (!res) return; var p = (res.port || '').trim(); diff --git a/src/ui/msgbox.tis b/src/ui/msgbox.tis index b24c667e2..98ba8e970 100644 --- a/src/ui/msgbox.tis +++ b/src/ui/msgbox.tis @@ -98,7 +98,7 @@ class MsgboxComponent: Reactor.Component { self.timer(3ms, msgboxTimerFunc); return (
-
+
{translate(this.title)}