diff options
| author | Larvan2 <[email protected]> | 2023-04-13 14:46:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-13 14:46:09 +0800 |
| commit | 3562fa2882b7a7cd7a51e5024194cb81f82a4cc1 (patch) | |
| tree | b06d052849e09d4c02d214a2347030b949074d5b /src/components/ConnectionTable.module.scss | |
| parent | a1dd98d168f936d39dbc4d0cdbe9d2f3a77abd8d (diff) | |
chore: some optimization (#25)
* chore: some optimization
* adjust
Diffstat (limited to 'src/components/ConnectionTable.module.scss')
| -rw-r--r-- | src/components/ConnectionTable.module.scss | 48 |
1 files changed, 38 insertions, 10 deletions
diff --git a/src/components/ConnectionTable.module.scss b/src/components/ConnectionTable.module.scss index 59764ec..729765d 100644 --- a/src/components/ConnectionTable.module.scss +++ b/src/components/ConnectionTable.module.scss @@ -5,15 +5,15 @@ } .th { - padding: 8px 10px; + padding: 3% 0%; height: 50px; background: var(--color-background); position: sticky; top: 0; - font-size: 0.9em; - text-align: center; + font-size: 1em; user-select: none; - + text-align: center; + vertical-align: middle; display: flex; align-items: center; justify-content: space-between; @@ -23,10 +23,36 @@ } } +.thdu { + padding: 3% 0%; + height: 50px; + background: var(--color-background); + position: sticky; + top: 0; + font-size: 1em; + user-select: none; + text-align: center; + vertical-align: middle; + display: flex; + align-items: center; + justify-content: space-evenly; + + &:hover { + color: var(--color-text-highlight); + } +} + .td { - padding: 8px 13px; + /* 上边下边 | 左边右边 */ + padding: 4% 2%; font-size: 0.9em; + max-width: 14em; + min-width: 9em; + word-wrap: break-word; + word-break: break-all; cursor: default; + text-align: left; + vertical-align: middle; &:hover { color: var(--color-text-highlight); } @@ -39,14 +65,16 @@ /* download upload td cells */ .du { - text-align: right; + min-width: 7em; + text-align: center; + justify-content: space-around; } .sortIconContainer { - display: inline-flex; - margin-left: 10px; - width: 16px; - height: 16px; + display: inline; + margin-left: 0.5em; + width: 1em; + height: 1em; } .rotate180 { |
