修复中控自更新触发与错误提示;实例页改为表格,带鱼屏宽度锁 1800。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 07:44:12 +08:00
parent 2e460efb73
commit 5b4e35c582
8 changed files with 303 additions and 190 deletions
+82 -78
View File
@@ -83,6 +83,20 @@ body.page-desk .main {
margin: 0;
padding: 10px 12px 14px;
}
/* 实例页:普通屏用满;带鱼屏锁 1800 */
body.page-instances .main {
max-width: none;
width: 100%;
margin: 0 auto;
padding: 12px clamp(12px, 2vw, 28px) 20px;
}
@media (min-aspect-ratio: 21/9) {
body.page-instances .main {
max-width: 1800px;
padding-left: clamp(16px, 3vw, 48px);
padding-right: clamp(16px, 3vw, 48px);
}
}
body.page-login {
min-height: 100vh;
}
@@ -373,7 +387,8 @@ button, .btn {
height: 0;
}
.inst-shell {
max-width: 920px;
max-width: none;
width: 100%;
}
.inst-add-panel {
display: none;
@@ -385,73 +400,83 @@ button, .btn {
.inst-list-head {
border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}
.inst-card-list {
padding: 16px 18px 20px;
display: flex;
flex-direction: column;
gap: 12px;
.inst-table-wrap {
padding: 14px 16px 18px;
overflow-x: auto;
}
.inst-empty {
margin: 8px 4px 12px;
line-height: 1.5;
font-size: 0.88rem;
}
.inst-card {
border: 1px solid rgba(56, 189, 248, 0.16);
border-radius: 14px;
background: rgba(5, 12, 22, 0.45);
.inst-table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
}
.inst-table th,
.inst-table td {
padding: 12px 10px;
border-bottom: 1px solid rgba(56, 189, 248, 0.12);
text-align: left;
vertical-align: middle;
}
.inst-table th {
color: var(--accent-2);
font-weight: 600;
white-space: nowrap;
background: rgba(8, 16, 30, 0.7);
}
.inst-table tr.inst-row:hover td {
background: rgba(34, 211, 238, 0.04);
}
.inst-td-name { min-width: 7rem; }
.inst-td-url {
max-width: 28rem;
overflow: hidden;
}
.inst-card[open] {
border-color: rgba(56, 189, 248, 0.35);
box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.inst-card-summary {
list-style: none;
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
cursor: pointer;
user-select: none;
}
.inst-card-summary::-webkit-details-marker { display: none; }
.inst-card-main { flex: 1; min-width: 0; }
.inst-card-title-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.inst-card-name {
font-size: 1rem;
font-weight: 650;
letter-spacing: 0.02em;
}
.inst-card-url {
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.8rem;
word-break: break-all;
line-height: 1.35;
}
.inst-card-aside {
display: flex;
.inst-td-tags {
max-width: 10rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.inst-td-ops {
white-space: nowrap;
}
.inst-td-ops .btn,
.inst-td-ops .btn-danger,
.inst-td-ops label.btn {
margin-top: 0;
display: inline-flex;
align-items: center;
gap: 10px;
flex: 0 0 auto;
cursor: pointer;
}
.inst-card-chevron {
width: 8px;
height: 8px;
border-right: 2px solid var(--muted);
border-bottom: 2px solid var(--muted);
transform: rotate(45deg);
transition: transform 0.15s ease;
margin-top: -4px;
.inst-inline-del {
display: inline;
margin: 0;
}
.inst-card[open] .inst-card-chevron {
transform: rotate(225deg);
margin-top: 2px;
.inst-edit-check {
position: absolute;
opacity: 0;
pointer-events: none;
width: 0;
height: 0;
}
.inst-edit-row > td {
padding: 0;
border-bottom: 1px solid rgba(56, 189, 248, 0.16);
background: rgba(5, 12, 22, 0.35);
}
.inst-edit-panel {
display: none;
padding: 4px 8px 12px;
}
.inst-edit-check:checked + .inst-edit-panel {
display: block;
}
.inst-pill {
display: inline-flex;
@@ -472,23 +497,6 @@ button, .btn {
background: rgba(127, 29, 29, 0.35);
border: 1px solid rgba(251, 113, 133, 0.35);
}
.inst-pill--tag {
color: #bae6fd;
background: rgba(14, 116, 144, 0.28);
border: 1px solid rgba(56, 189, 248, 0.28);
max-width: 12rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.inst-card-body {
padding: 0 8px 14px;
border-top: 1px solid rgba(56, 189, 248, 0.1);
}
.inst-card-body .inst-form {
padding-top: 14px;
padding-bottom: 8px;
}
.inst-card-actions {
display: flex;
flex-wrap: wrap;
@@ -500,9 +508,6 @@ button, .btn {
.inst-card-actions .settings-primary {
margin-top: 0;
}
.inst-delete-form {
padding: 0 12px 4px;
}
.inst-token-wrap {
display: flex;
gap: 8px;
@@ -522,8 +527,7 @@ button, .btn {
@media (max-width: 720px) {
.inst-page-head { align-items: flex-start; }
.settings-row-2 { grid-template-columns: 1fr; }
.inst-card-summary { flex-direction: column; align-items: stretch; gap: 8px; }
.inst-card-aside { justify-content: space-between; }
.inst-td-ops { white-space: normal; }
}
.overview-table-wrap {
overflow-x: auto;