feat(admin): add route templates to editor

This commit is contained in:
RhenCloud 2026-08-03 08:16:34 +08:00
parent d6c15a32cd
commit a001efea5f
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
4 changed files with 178 additions and 1 deletions

View file

@ -619,6 +619,39 @@ main {
color: var(--faint);
}
.templates {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.template-chip {
padding: 5px 12px;
background: var(--surface-2);
border: 1px solid var(--border-strong);
border-radius: 999px;
color: var(--muted);
font-family: var(--ui);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition:
border-color 0.15s,
color 0.15s,
background 0.15s;
}
.template-chip:hover {
border-color: var(--accent);
color: var(--accent);
}
.template-chip.active {
background: var(--accent-dim);
border-color: var(--accent);
color: var(--accent);
}
.field input[type="text"] {
width: 100%;
padding: 10px 12px;