From f3899e93a0bc24499b3c02f46dff59a50463aa61 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 26 Mar 2017 13:25:04 +0800 Subject: [PATCH] modify user interface of rpc setting page --- src/langs/zh_CN.txt | 5 +--- src/scripts/config/defaultLanguage.js | 5 +--- src/styles/controls/settings-table.css | 18 ++++++++++++++ src/views/settings-ariang.html | 34 ++++++++------------------ 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/src/langs/zh_CN.txt b/src/langs/zh_CN.txt index 596e7b5..b4b3b3f 100644 --- a/src/langs/zh_CN.txt +++ b/src/langs/zh_CN.txt @@ -127,14 +127,11 @@ Example: ${downspeed:noprefix:nosuffix:scale\=1}=示例: ${downspeed:noprefix:no Page Title Refresh Interval=页面标题刷新间隔 Enable Browser Notification=启用浏览器通知 Aria2 RPC Alias=Aria2 RPC 别名 -Aria2 RPC Host=Aria2 RPC 主机 -Aria2 RPC Port=Aria2 RPC 端口 -Aria2 RPC Interface=Aria2 RPC 接口 +Aria2 RPC Address=Aria2 RPC 地址 Aria2 RPC Protocol=Aria2 RPC 协议 Aria2 RPC Http Request Method=Aria2 RPC Http 请求方法 POST method only supports aria2 v1.15.2 and above.=POST 方法仅支持 aria2 v1.15.2 及以上. Aria2 RPC Secret Token=Aria2 RPC 密钥 -Aria2 RPC Address=Aria2 RPC 地址 Set Default=设为默认 Delete RPC Setting=删除 RPC 设置 Add New RPC Setting=添加新 RPC 配置 diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index f8d29ae..3b5e0d5 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -131,14 +131,11 @@ 'Page Title Refresh Interval': 'Page Title Refresh Interval', 'Enable Browser Notification': 'Enable Browser Notification', 'Aria2 RPC Alias': 'Aria2 RPC Alias', - 'Aria2 RPC Host': 'Aria2 RPC Host', - 'Aria2 RPC Port': 'Aria2 RPC Port', - 'Aria2 RPC Interface': 'Aria2 RPC Interface', + 'Aria2 RPC Address': 'Aria2 RPC Address', 'Aria2 RPC Protocol': 'Aria2 RPC Protocol', 'Aria2 RPC Http Request Method': 'Aria2 RPC Http Request Method', 'POST method only supports aria2 v1.15.2 and above.': 'POST method only supports aria2 v1.15.2 and above.', 'Aria2 RPC Secret Token': 'Aria2 RPC Secret Token', - 'Aria2 RPC Address': 'Aria2 RPC Address', 'Set Default': 'Set Default', 'Delete RPC Setting': 'Delete RPC Setting', 'Add New RPC Setting': 'Add New RPC Setting', diff --git a/src/styles/controls/settings-table.css b/src/styles/controls/settings-table.css index 923d3d0..d46af4e 100644 --- a/src/styles/controls/settings-table.css +++ b/src/styles/controls/settings-table.css @@ -68,6 +68,24 @@ z-index: inherit; } +.settings-table .setting-value .input-group .form-control-rpcport { + min-width: 70px; +} + +.settings-table .setting-value .input-group .form-control-rpcinterface { + min-width: 100px; +} + +@media (max-width: 991px) { + .settings-table .setting-value .input-group .form-control-rpcport { + min-width: 60px; + } + + .settings-table .setting-value .input-group .form-control-rpcinterface { + min-width: 60px; + } +} + .settings-table .tip { font-size: 12px; padding: 4px 8px 4px 8px; diff --git a/src/views/settings-ariang.html b/src/views/settings-ariang.html index acd0a59..23a82fe 100644 --- a/src/views/settings-ariang.html +++ b/src/views/settings-ariang.html @@ -6,7 +6,7 @@