front update

This commit is contained in:
Mateusz Gruszczyński
2026-05-03 13:44:56 +02:00
parent 4fac1716a6
commit 4696d92dd8
3 changed files with 66 additions and 11 deletions

View File

@@ -213,11 +213,60 @@ body {
.ctx-menu button:hover { background: var(--bs-secondary-bg); }
.ctx-menu .danger { color: var(--bs-danger); }
.ctx-menu hr { margin: .25rem 0; border-color: var(--bs-border-color); }
.profile-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; align-items: center; padding: .45rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; margin-bottom: .45rem; background: rgba(var(--bs-secondary-bg-rgb), .58); }
.profile-row span { grid-column: 1 / 2; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.profile-form-actions { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.profile-actions { display: inline-flex; gap: .35rem; }
.profile-row.active { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.profile-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: .25rem .5rem;
align-items: center;
margin-bottom: .45rem;
padding: .45rem;
border: 1px solid var(--bs-border-color);
border-radius: .6rem;
background: rgba(var(--bs-secondary-bg-rgb), .58);
}
.profile-row.active {
border-color: var(--bs-primary);
background: var(--bs-primary-bg-subtle);
}
.profile-row span {
grid-column: 1 / 2;
color: var(--bs-secondary-color);
overflow-wrap: anywhere;
}
.profile-actions,
.profile-form-actions {
display: inline-flex;
gap: .35rem;
flex-wrap: wrap;
}
.profile-form-grid {
display: grid;
grid-template-columns: minmax(150px, 1.1fr) minmax(260px, 2.1fr) minmax(90px, .55fr) minmax(120px, .75fr) minmax(145px, auto) auto;
gap: .65rem;
align-items: start;
}
.profile-form-field {
display: grid;
gap: .25rem;
min-width: 0;
}
.profile-form-field > span:first-child {
color: var(--bs-secondary-color);
font-size: .72rem;
font-weight: 700;
line-height: 1.1;
text-transform: uppercase;
}
.profile-form-field small {
color: var(--bs-secondary-color);
line-height: 1.25;
}
.profile-check-field .form-check {
min-height: 31px;
display: flex;
align-items: center;
gap: .45rem;
}
.flag-icon { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.flag-code { color: var(--bs-secondary-color); margin-left: .25rem; }
.peer-actions { display: flex; align-items: center; gap: .25rem; flex-wrap: nowrap; }
@@ -349,11 +398,17 @@ body.mobile-mode .torrent-table { display: none; }
body.mobile-mode #mobileList{min-height:0;height:100%;overflow:auto;display:block!important}
body.mobile-mode .mobile-card{display:block}.mobile-card .mobile-actions button{min-width:34px}
#toolSmart .form-label{font-size:.75rem;color:var(--bs-secondary-color);margin-bottom:.2rem}
.profile-form-grid{display:grid;grid-template-columns:1.1fr 2.1fr .55fr .75fr auto auto;gap:.5rem;align-items:center}
#toolSmart .btn{padding:.25rem .55rem;border-radius:.5rem;white-space:nowrap}
#toolSmart .row .d-flex{align-items:end;justify-content:flex-start}
#trafficHistoryChart{width:100%;height:420px;border:1px solid var(--bs-border-color);border-radius:.75rem;background:var(--bs-body-bg)}
@media (max-width: 992px){.profile-form-grid{grid-template-columns:1fr}.profile-form-grid .btn{width:100%}}
@media (max-width: 992px) {
.profile-form-grid {
grid-template-columns: 1fr;
}
.profile-form-grid .btn {
width: 100%;
}
}
/* Requested fixes: stable charts, Smart Queue exceptions, label actions, mobile readability */
.history-grid{display:grid;grid-template-columns:1fr;gap:1rem}