Admin panel changes and sidebar scrolling fix
All checks were successful
Automated Container Build / build-and-push (push) Successful in 17s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 17s
This commit is contained in:
parent
9577fd1cf3
commit
692ef068a1
4 changed files with 341 additions and 61 deletions
152
public/style.css
152
public/style.css
|
|
@ -89,16 +89,22 @@ body {
|
|||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-light) transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#sidebar::-webkit-scrollbar { width: 5px; }
|
||||
#sidebar::-webkit-scrollbar-track { background: transparent; }
|
||||
#sidebar::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
|
||||
|
||||
/* Chapter section fills remaining vertical space */
|
||||
#chapter-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Resize Handle ───────────────────────────────────────── */
|
||||
|
||||
.resize-handle {
|
||||
|
|
@ -286,7 +292,8 @@ body.resizing * {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
max-height: 45vh;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-light) transparent;
|
||||
|
|
@ -902,15 +909,140 @@ body.resizing * {
|
|||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
.admin-password-form {
|
||||
|
||||
/* ── Active Sessions Cards ──────────────────────────────────── */
|
||||
|
||||
.admin-sessions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-light) transparent;
|
||||
}
|
||||
.admin-password-form input {
|
||||
|
||||
.admin-session-card {
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 12px;
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
.admin-session-card:hover {
|
||||
border-color: var(--border-light);
|
||||
}
|
||||
|
||||
.session-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.session-icon {
|
||||
font-size: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.session-file {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
.admin-password-form button {
|
||||
width: auto;
|
||||
|
||||
.session-details {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: 4px 12px;
|
||||
}
|
||||
.session-detail {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.detail-label {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.detail-value {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ── IP Tracking Log ────────────────────────────────────────── */
|
||||
|
||||
.admin-ip-log {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-light) transparent;
|
||||
}
|
||||
|
||||
.ip-log-table {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
.ip-log-header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 80px 120px;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
color: var(--text-muted);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.ip-log-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 80px 120px;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background var(--transition);
|
||||
}
|
||||
.ip-log-row:hover {
|
||||
background: var(--bg-card-hover);
|
||||
}
|
||||
.ip-log-row.ip-locked {
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
}
|
||||
.ip-log-row.ip-locked:hover {
|
||||
background: rgba(239, 68, 68, 0.14);
|
||||
}
|
||||
.ip-address {
|
||||
color: var(--text-primary);
|
||||
font-family: monospace;
|
||||
font-size: 11.5px;
|
||||
}
|
||||
.ip-attempts {
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.ip-status {
|
||||
text-align: right;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ip-tracking .ip-status {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.ip-locked .ip-status {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
/* ── Utilities ───────────────────────────────────────────── */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue