summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMetaCubeX <[email protected]>2022-06-02 21:02:08 +0800
committerMetaCubeX <[email protected]>2022-06-02 21:02:08 +0800
commitd6072df3b53d3b08983d74e9f08d6ec33803e602 (patch)
treed53b9d9004d8fc7c16cf78a605bf0c9be3267005 /src
parentf160b6f890da67cca9d7a66f7abab1af1567588e (diff)
chore: adjust page style
Diffstat (limited to 'src')
-rw-r--r--src/app.tsx2
-rw-r--r--src/components/Config.module.scss3
-rw-r--r--src/components/Config.tsx10
-rw-r--r--src/components/Selection.module.scss3
-rw-r--r--src/components/shared/Select.module.scss2
-rw-r--r--src/i18n/en.ts2
6 files changed, 11 insertions, 11 deletions
diff --git a/src/app.tsx b/src/app.tsx
index 5817c2c..75ee4ce 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -22,6 +22,6 @@ root.render(
swRegistration.register();
// eslint-disable-next-line no-console
-console.log('Checkout the repo: https://github.com/yaling888/yacd');
+console.log('Checkout the repo: https://github.com/MetaCubeX/yacd');
// eslint-disable-next-line
console.log('Version:', __VERSION__);
diff --git a/src/components/Config.module.scss b/src/components/Config.module.scss
index e233f8b..c408ff1 100644
--- a/src/components/Config.module.scss
+++ b/src/components/Config.module.scss
@@ -1,11 +1,12 @@
.root,
.section {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ grid-template-columns: repeat(auto-fill, minmax(49%, 1fr));
max-width: 900px;
gap: 5px;
@media (--breakpoint-not-small) {
gap: 15px;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
}
diff --git a/src/components/Config.tsx b/src/components/Config.tsx
index 41ffdd7..ded79ad 100644
--- a/src/components/Config.tsx
+++ b/src/components/Config.tsx
@@ -1,11 +1,14 @@
import * as React from 'react';
import { DownloadCloud, LogOut, RotateCw, Trash2 } from 'react-feather';
import { useTranslation } from 'react-i18next';
+import { useQuery } from 'react-query';
import * as logsApi from 'src/api/logs';
import Select from 'src/components/shared/Select';
import { ClashGeneralConfig, DispatchFn, State } from 'src/store/types';
import { ClashAPIConfig } from 'src/types';
+import { fetchVersion } from '$src/api/version';
+
import {
getClashAPIConfig,
getLatencyTestUrl,
@@ -28,9 +31,6 @@ import { Selection2 } from './Selection';
import { connect, useStoreActions } from './StateProvider';
import Switch from './SwitchThemed';
import TrafficChartSample from './TrafficChartSample';
-import { useQuery } from 'react-query';
-import { fetchVersion } from '$src/api/version';
-// import ToggleSwitch from './ToggleSwitch';
const { useEffect, useState, useCallback, useRef } = React;
@@ -45,8 +45,8 @@ const logLeveOptions = [
];
const portFields = [
- { key: 'port', label: 'HTTP Proxy Port' },
- { key: 'socks-port', label: 'SOCKS5 Proxy Port' },
+ { key: 'port', label: 'Http Port' },
+ { key: 'socks-port', label: 'Socks5 Port' },
{ key: 'mixed-port', label: 'Mixed Port' },
{ key: 'redir-port', label: 'Redir Port' },
{ key: 'mitm-port', label: 'MITM Port' },
diff --git a/src/components/Selection.module.scss b/src/components/Selection.module.scss
index ba47089..ab36446 100644
--- a/src/components/Selection.module.scss
+++ b/src/components/Selection.module.scss
@@ -8,9 +8,8 @@
.input + .cnt {
border: 1px solid transparent;
- border-radius: 8px;
+ border-radius: 4px;
cursor: pointer;
- margin-right: 5px;
margin-bottom: 5px;
}
diff --git a/src/components/shared/Select.module.scss b/src/components/shared/Select.module.scss
index 0b6b41b..1240e2f 100644
--- a/src/components/shared/Select.module.scss
+++ b/src/components/shared/Select.module.scss
@@ -3,7 +3,7 @@
line-height: 1.5;
width: 100%;
font-size: small;
- padding-left: 8px;
+ padding-left: 15px;
appearance: none;
background-color: var(--color-input-bg);
color: var(--color-text);
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index f936643..b78889d 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -43,7 +43,7 @@ export const data = {
flush_fake_ip_pool: 'Flush fake-ip data',
enable_tun_device: 'Enable TUN Device',
allow_lan: 'Allow LAN',
- tls_sniffing: 'TLS Sniffing',
+ tls_sniffing: 'Sniffer',
c_host: 'Host',
c_process: 'Process',
c_dl: 'DL',