Control settings tabs, hide default creds hint after change, LAN passwordless login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-30 13:04:07 +08:00
parent 8034464c2f
commit d46eaf43ab
9 changed files with 515 additions and 144 deletions
+72
View File
@@ -317,6 +317,78 @@ td {
word-break: break-all;
}
.settings-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 12px 0 16px;
}
.settings-tabs .tab {
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
font: inherit;
}
.settings-tabs .tab.active,
.settings-tabs .tab:hover {
color: var(--text);
background: var(--panel);
border-color: #3d5a73;
}
.switch-row {
display: flex !important;
flex-direction: row !important;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 10px 0;
border-bottom: 1px solid var(--line);
margin-bottom: 8px;
}
.switch-hint {
display: block;
margin-top: 4px;
font-weight: 400;
}
.switch {
position: relative;
width: 48px;
height: 28px;
border-radius: 999px;
border: 0;
background: #3a4654;
cursor: pointer;
flex-shrink: 0;
padding: 0;
}
.switch.on {
background: var(--ok);
}
.switch-knob {
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
transition: transform 0.15s ease;
}
.switch.on .switch-knob {
transform: translateX(20px);
}
.modal-backdrop {
position: fixed;
inset: 0;