feat(gui): inline peer rename

Click on peer name in the table to edit it inline.
Enter to save, Escape to cancel, blur also saves.
Saved via POST /peers/<id>/rename without page reload.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 10:25:28 +03:00
parent 667cdd90df
commit 0aead8c3ad
3 changed files with 68 additions and 1 deletions
+16
View File
@@ -179,6 +179,22 @@ tbody tr.row-disabled td { opacity: 0.45; }
.pubkey { font-family: var(--mono); font-size: 11px; color: var(--text-muted); cursor: default; }
.hostname { font-size: 11px; color: var(--accent); font-weight: 500; }
.editable { cursor: text; border-bottom: 1px dashed var(--border); }
.editable:hover { border-bottom-color: var(--accent); color: var(--accent); }
.rename-input {
font-family: var(--font);
font-size: 13px;
font-weight: 600;
color: var(--text);
border: 1px solid var(--accent);
border-radius: 5px;
padding: 2px 6px;
outline: none;
width: 140px;
box-shadow: 0 0 0 3px rgba(59,110,246,.12);
}
.empty { text-align: center; padding: 40px !important; color: var(--text-muted); }
.empty a { color: var(--accent); text-decoration: none; }