fix(keenetic): open KeenDNS edit instead of detail modal

Card-level onclick fired even when KeenDNS was clicked. Use delegated
handlers so the edit form toggles reliably and card clicks skip buttons.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-22 02:38:09 +03:00
parent 40f6ac4f7e
commit 2da649d1ae
3 changed files with 78 additions and 16 deletions

View File

@@ -435,12 +435,36 @@ main {
.keenetic-url-edit {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border);
padding: 12px;
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
}
.keenetic-url-edit.is-open {
border-color: var(--accent);
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.keenetic-url-edit-title {
font-size: 13px;
font-weight: 600;
margin-bottom: 8px;
color: var(--accent);
}
.keenetic-url-edit .form-group input {
font-size: 12px;
font-size: 13px;
width: 100%;
}
.server-card-actions .keenetic-url-btn.active {
border-color: var(--accent);
color: var(--accent);
}
.keenetic-card-open {
cursor: pointer;
}
.server-card-actions {