From b75c36f26d2fa7ffcdae610659662e4a7c59a2e8 Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Wed, 17 May 2023 08:15:17 +0000 Subject: larvanz --- src/components/ConnectionTable.module.scss | 7 +++---- src/components/ConnectionTable.tsx | 6 +++--- src/components/proxies/ProxyLatency.module.scss | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/ConnectionTable.module.scss b/src/components/ConnectionTable.module.scss index d25eb7d..4db900e 100644 --- a/src/components/ConnectionTable.module.scss +++ b/src/components/ConnectionTable.module.scss @@ -43,18 +43,17 @@ } .break { + /* 上边下边 | 左边右边 */ + max-width: 13em; + min-width: 9em; word-wrap: break-word; word-break: break-all; - align-items: center; - text-align: left; } .td { /* 上边下边 | 左边右边 */ padding: 10px 2px; font-size: 0.9em; - // max-width: 14em; - min-width: 9em; cursor: default; align-items: center; text-align: left; diff --git a/src/components/ConnectionTable.tsx b/src/components/ConnectionTable.tsx index 6696fcd..e0c1c7f 100644 --- a/src/components/ConnectionTable.tsx +++ b/src/components/ConnectionTable.tsx @@ -104,9 +104,9 @@ function Table({ data }) { {...cell.getCellProps()} className={cx( s.td, - i % 2 === 0 ? s.odd : false, - j == 0 || (j >= 5 && j < 10) ? s.center : true - // j ==1 ? s.break : true + i % 2 == 0 ? s.odd : false, + j == 0 || (j >= 5 && j < 10) ? s.center : true, + j == 2 || j == 4 ? s.break : true )} > {renderCell(cell, locale)} diff --git a/src/components/proxies/ProxyLatency.module.scss b/src/components/proxies/ProxyLatency.module.scss index 37502a8..165a1f9 100644 --- a/src/components/proxies/ProxyLatency.module.scss +++ b/src/components/proxies/ProxyLatency.module.scss @@ -5,6 +5,6 @@ color: #eee; font-size: 0.75em; @media (--breakpoint-not-small) { - font-size: 0.8em; + font-size: 1em; } } -- cgit v1.3.1