Restore admin sound management UI in web app

This commit is contained in:
Bot 2026-03-01 16:14:46 +01:00
parent f90401a009
commit e200087a73
2 changed files with 429 additions and 14 deletions

View file

@ -1248,18 +1248,22 @@ input, select {
border: 1px solid rgba(255, 255, 255, .08);
border-radius: var(--radius-lg);
padding: 28px;
width: 90%;
max-width: 400px;
width: 92%;
max-width: 920px;
max-height: min(88vh, 860px);
display: flex;
flex-direction: column;
box-shadow: var(--shadow-high);
}
.admin-panel h3 {
font-size: 18px;
font-weight: 700;
margin-bottom: 20px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.admin-close {
@ -1318,6 +1322,7 @@ input, select {
font-family: var(--font);
cursor: pointer;
transition: all var(--transition);
line-height: 1;
}
.admin-btn-action.primary {
@ -1341,6 +1346,180 @@ input, select {
color: var(--text-normal);
}
.admin-btn-action.danger {
background: var(--red);
color: var(--white);
border: 1px solid var(--red);
}
.admin-btn-action.danger:hover {
filter: brightness(1.06);
}
.admin-btn-action.danger.ghost {
background: transparent;
color: var(--red);
border: 1px solid rgba(242, 63, 66, .5);
}
.admin-btn-action.danger.ghost:hover {
background: rgba(242, 63, 66, .14);
}
.admin-btn-action:disabled {
opacity: .5;
pointer-events: none;
}
.admin-shell {
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
}
.admin-header-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.admin-status {
font-size: 13px;
color: var(--text-muted);
}
.admin-actions-inline {
display: flex;
align-items: center;
gap: 8px;
}
.admin-search-field {
margin-bottom: 0;
}
.admin-bulk-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 8px 10px;
border-radius: 10px;
background: var(--bg-tertiary);
border: 1px solid rgba(255, 255, 255, .08);
flex-wrap: wrap;
}
.admin-select-all {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--text-muted);
}
.admin-select-all input,
.admin-item-check input {
accent-color: var(--accent);
}
.admin-list-wrap {
min-height: 260px;
max-height: 52vh;
overflow-y: auto;
border: 1px solid rgba(255, 255, 255, .08);
border-radius: 10px;
background: var(--bg-primary);
}
.admin-list {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px;
}
.admin-empty {
padding: 24px 12px;
text-align: center;
color: var(--text-muted);
font-size: 13px;
}
.admin-item {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
padding: 10px;
border-radius: 8px;
background: var(--bg-secondary);
border: 1px solid rgba(255, 255, 255, .06);
}
.admin-item-main {
min-width: 0;
}
.admin-item-name {
font-size: 14px;
font-weight: 600;
color: var(--text-normal);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.admin-item-meta {
margin-top: 3px;
font-size: 11px;
color: var(--text-faint);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.admin-item-actions {
display: flex;
align-items: center;
gap: 6px;
}
.admin-item-actions .admin-btn-action,
.admin-rename-row .admin-btn-action {
padding: 8px 12px;
font-size: 12px;
}
.admin-rename-row {
display: flex;
align-items: center;
gap: 6px;
margin-top: 8px;
}
.admin-rename-row input {
flex: 1;
min-width: 120px;
background: var(--bg-tertiary);
border: 1px solid rgba(255, 255, 255, .08);
border-radius: 8px;
padding: 8px 10px;
font-size: 13px;
color: var(--text-normal);
font-family: var(--font);
transition: all var(--transition);
}
.admin-rename-row input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
/*
Responsive
*/
@ -1396,6 +1575,25 @@ input, select {
.tb-btn span:not(.tb-icon) {
display: none;
}
.admin-panel {
width: 96%;
padding: 16px;
max-height: 92vh;
}
.admin-item {
grid-template-columns: 24px minmax(0, 1fr);
}
.admin-item-actions {
grid-column: 1 / -1;
justify-content: flex-end;
}
.admin-rename-row {
flex-wrap: wrap;
}
}
@media (max-width: 480px) {