mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 05:33:17 +08:00
Tighten WebCRT SFTP panel typography to match chrome.
Use compact muted headers and denser rows so the file table fits the surrounding UI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
12153b89fb
commit
7d8b698b91
3 changed files with 62 additions and 33 deletions
|
|
@ -1050,8 +1050,8 @@ const en = {
|
||||||
enterHint: "Double-click to open folder",
|
enterHint: "Double-click to open folder",
|
||||||
downloadHint: "Click to download",
|
downloadHint: "Click to download",
|
||||||
colName: "Name",
|
colName: "Name",
|
||||||
colSize: "Size (KB)",
|
colSize: "Size",
|
||||||
colMtime: "Last modified",
|
colMtime: "Modified",
|
||||||
colOwner: "Owner",
|
colOwner: "Owner",
|
||||||
colGroup: "Group",
|
colGroup: "Group",
|
||||||
colMode: "Access",
|
colMode: "Access",
|
||||||
|
|
|
||||||
|
|
@ -1047,7 +1047,7 @@ const zh = {
|
||||||
enterHint: "双击进入目录",
|
enterHint: "双击进入目录",
|
||||||
downloadHint: "单击下载文件",
|
downloadHint: "单击下载文件",
|
||||||
colName: "名称",
|
colName: "名称",
|
||||||
colSize: "大小 (KB)",
|
colSize: "大小",
|
||||||
colMtime: "修改时间",
|
colMtime: "修改时间",
|
||||||
colOwner: "所有者",
|
colOwner: "所有者",
|
||||||
colGroup: "组",
|
colGroup: "组",
|
||||||
|
|
|
||||||
|
|
@ -3085,32 +3085,51 @@ pre {
|
||||||
|
|
||||||
.webcrt-sftp__bar {
|
.webcrt-sftp__bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
padding: 6px;
|
padding: 5px 6px;
|
||||||
border-bottom: 1px solid #334155;
|
border-bottom: 1px solid #334155;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
background: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__bar input {
|
.webcrt-sftp__bar input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
background: #1e293b;
|
height: 24px;
|
||||||
border: 1px solid #475569;
|
background: #111827;
|
||||||
color: #e2e8f0;
|
border: 1px solid #334155;
|
||||||
padding: 2px 6px;
|
border-radius: 4px;
|
||||||
font-size: 12px;
|
color: #cbd5e1;
|
||||||
|
padding: 0 6px;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__bar button,
|
.webcrt-sftp__bar button,
|
||||||
.webcrt-sftp__upload {
|
.webcrt-sftp__upload {
|
||||||
background: #334155;
|
display: inline-flex;
|
||||||
border: 1px solid #475569;
|
align-items: center;
|
||||||
color: #e2e8f0;
|
justify-content: center;
|
||||||
padding: 2px 8px;
|
height: 24px;
|
||||||
|
background: #1e293b;
|
||||||
|
border: 1px solid #334155;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #cbd5e1;
|
||||||
|
padding: 0 8px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.webcrt-sftp__bar button:hover:not(:disabled),
|
||||||
|
.webcrt-sftp__upload:hover:not(.is-disabled) {
|
||||||
|
background: #243447;
|
||||||
|
border-color: #475569;
|
||||||
|
color: #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
.webcrt-sftp__bar button:disabled,
|
.webcrt-sftp__bar button:disabled,
|
||||||
.webcrt-sftp__upload.is-disabled {
|
.webcrt-sftp__upload.is-disabled {
|
||||||
opacity: 0.55;
|
opacity: 0.55;
|
||||||
|
|
@ -3118,9 +3137,9 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__status {
|
.webcrt-sftp__status {
|
||||||
padding: 4px 10px;
|
padding: 3px 8px;
|
||||||
font-size: 11px;
|
font-size: 10px;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
border-bottom: 1px solid #1e293b;
|
border-bottom: 1px solid #1e293b;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -3135,19 +3154,23 @@ pre {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
color: #e2e8f0;
|
line-height: 1.35;
|
||||||
|
color: #cbd5e1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__table thead th {
|
.webcrt-sftp__table thead th {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: #1e293b;
|
background: #0f172a;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
|
font-size: 10px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 6px 8px;
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
padding: 4px 6px;
|
||||||
border-bottom: 1px solid #334155;
|
border-bottom: 1px solid #334155;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
@ -3159,7 +3182,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__table tbody tr:hover {
|
.webcrt-sftp__table tbody tr:hover {
|
||||||
background: #1e293b;
|
background: #111827;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__table tbody tr.is-busy {
|
.webcrt-sftp__table tbody tr.is-busy {
|
||||||
|
|
@ -3168,7 +3191,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__table td {
|
.webcrt-sftp__table td {
|
||||||
padding: 5px 8px;
|
padding: 3px 6px;
|
||||||
border-bottom: 1px solid #1e293b;
|
border-bottom: 1px solid #1e293b;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
@ -3177,51 +3200,56 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__col-name {
|
.webcrt-sftp__col-name {
|
||||||
width: 36%;
|
width: 34%;
|
||||||
|
color: #e2e8f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__col-size {
|
.webcrt-sftp__col-size {
|
||||||
width: 12%;
|
width: 12%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webcrt-sftp__table thead th.webcrt-sftp__col-size {
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__col-mtime {
|
.webcrt-sftp__col-mtime {
|
||||||
width: 20%;
|
width: 22%;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__col-owner,
|
.webcrt-sftp__col-owner,
|
||||||
.webcrt-sftp__col-group {
|
.webcrt-sftp__col-group {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__col-mode {
|
.webcrt-sftp__col-mode {
|
||||||
width: 12%;
|
width: 12%;
|
||||||
font-family: Consolas, "Courier New", monospace;
|
font-family: Consolas, "Courier New", monospace;
|
||||||
font-size: 11px;
|
font-size: 10px;
|
||||||
color: #64748b;
|
color: #475569;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__name-cell {
|
.webcrt-sftp__name-cell {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__icon {
|
.webcrt-sftp__icon {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__icon.is-dir {
|
.webcrt-sftp__icon.is-dir {
|
||||||
color: #fbbf24;
|
color: #d97706;
|
||||||
}
|
}
|
||||||
|
|
||||||
.webcrt-sftp__name {
|
.webcrt-sftp__name {
|
||||||
|
|
@ -3229,6 +3257,7 @@ pre {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue