diff --git a/web/index.html b/web/index.html index 90ce755..9caa3b1 100644 --- a/web/index.html +++ b/web/index.html @@ -2,7 +2,7 @@ - Telegram UI 聊天室框架 + NodeCrypt @@ -22,7 +22,7 @@ - + @@ -35,7 +35,7 @@
- Enter a channel + Enter a Node
diff --git a/web/main.js b/web/main.js index 3032b7a..1cd2d4b 100644 --- a/web/main.js +++ b/web/main.js @@ -223,8 +223,8 @@ function loginFormHandler(modal) { setStatus('Connecting...'); // 初始化 ChatCrypt const callbacks = { - onServerClosed: () => setStatus('Server connection closed'), - onServerSecured: () => setStatus('Secure connection to server'), + onServerClosed: () => setStatus('Node connection closed'), + onServerSecured: () => setStatus('Secure connection to node'), onClientSecured: (user) => handleClientSecured(idx, user), onClientList: (list, selfId) => handleClientList(idx, list, selfId), onClientLeft: (clientId) => handleClientLeft(idx, clientId), @@ -252,21 +252,21 @@ function openLoginModal() {
-

Sign in to Chatroom

+

Enter a Node

- +
- +
- +
`; @@ -296,11 +296,11 @@ function openLoginModal() { // 关闭modal modal.remove(); document.getElementById('chat-container').style.display = ''; - setStatus('正在连接...'); + setStatus('Connecting...'); // 初始化 ChatCrypt const callbacks = { - onServerClosed: () => setStatus('服务器连接关闭'), - onServerSecured: () => setStatus('与服务器安全连接已建立'), + onServerClosed: () => setStatus('Node connection closed'), + onServerSecured: () => setStatus('Secure connection to node'), onClientSecured: (user) => handleClientSecured(idx, user), onClientList: (list, selfId) => handleClientList(idx, list, selfId), onClientLeft: (clientId) => handleClientLeft(idx, clientId), diff --git a/web/style.css b/web/style.css index 9dd0305..0298974 100644 --- a/web/style.css +++ b/web/style.css @@ -877,10 +877,15 @@ body { border-radius: 14px; box-shadow: 0 2px 16px rgba(60,80,100,0.13); padding: 32px 24px 24px 24px; - min-width: 340px; - max-width: 90vw; + min-width: 200px; + width: 400px; text-align: center; } +.login-modal-card form { + display: flex; + flex-direction: column; + gap: 18px; +} .login-modal-close { position: absolute; right: 12px;