fix: table readability + remove sub-item Ред. button (use parent's)
This commit is contained in:
parent
8ff7a2abec
commit
5e0dc7e7d4
15
index.html
15
index.html
@ -32,9 +32,16 @@ input,select,textarea,button{font:inherit;outline:none}
|
|||||||
.card{background:#fff;border-radius:12px;padding:20px;margin-bottom:16px;border:1px solid #E8ECF1;overflow-x:auto;box-shadow:0 1px 4px rgba(0,0,0,0.04)}
|
.card{background:#fff;border-radius:12px;padding:20px;margin-bottom:16px;border:1px solid #E8ECF1;overflow-x:auto;box-shadow:0 1px 4px rgba(0,0,0,0.04)}
|
||||||
.card h3{font-size:16px;font-weight:700;margin-bottom:12px}
|
.card h3{font-size:16px;font-weight:700;margin-bottom:12px}
|
||||||
table{width:100%;border-collapse:collapse}
|
table{width:100%;border-collapse:collapse}
|
||||||
th,td{padding:8px 10px;font-size:13px;text-align:left;border-bottom:1px solid #E2E8F0;vertical-align:top}
|
th,td{padding:10px 14px;font-size:13px;text-align:left;border-bottom:1px solid #E2E8F0;vertical-align:top}
|
||||||
th{background:#F1F5F9;font-weight:600;font-size:11px;text-transform:uppercase;color:#64748B;white-space:nowrap}
|
th{background:#F1F5F9;font-weight:600;font-size:11px;text-transform:uppercase;color:#64748B;white-space:nowrap;position:sticky;top:0;z-index:2}
|
||||||
tr:hover{background:#FAFBFC}
|
tr:hover{background:#F8FAFC}
|
||||||
|
tr:nth-child(even){background:#FAFBFC}
|
||||||
|
tr:nth-child(even):hover{background:#F0F4F8}
|
||||||
|
th:nth-child(2){min-width:300px}
|
||||||
|
th:nth-child(3){min-width:140px}
|
||||||
|
th:nth-child(4){min-width:100px}
|
||||||
|
th:nth-child(5){min-width:90px}
|
||||||
|
th:nth-child(6){min-width:110px;text-align:center}
|
||||||
.badge{display:inline-block;padding:3px 8px;border-radius:100px;font-size:11px;font-weight:600;white-space:nowrap}
|
.badge{display:inline-block;padding:3px 8px;border-radius:100px;font-size:11px;font-weight:600;white-space:nowrap}
|
||||||
.badge.g{background:#E8F5E9;color:#2E7D32}.badge.a{background:#FFF3E0;color:#E65100}.badge.r{background:#FFEBEE;color:#C62828}.badge.b{background:#E3F2FD;color:#1565C0}.badge.w{background:#F5F5F5;color:#757575}
|
.badge.g{background:#E8F5E9;color:#2E7D32}.badge.a{background:#FFF3E0;color:#E65100}.badge.r{background:#FFEBEE;color:#C62828}.badge.b{background:#E3F2FD;color:#1565C0}.badge.w{background:#F5F5F5;color:#757575}
|
||||||
.fr{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;align-items:center}
|
.fr{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;align-items:center}
|
||||||
@ -1168,7 +1175,7 @@ function renderEv(){
|
|||||||
h+="<td style='font-size:11px'>"+esc(e.sub[si].r||sr)+"</td>";
|
h+="<td style='font-size:11px'>"+esc(e.sub[si].r||sr)+"</td>";
|
||||||
h+="<td style='font-size:11px'>"+(e.sub[si].due||e.due)+"</td>";
|
h+="<td style='font-size:11px'>"+(e.sub[si].due||e.due)+"</td>";
|
||||||
h+="<td><span class='badge "+scl+"' style='font-size:10px'>"+stn[ss]+"</span></td>";
|
h+="<td><span class='badge "+scl+"' style='font-size:10px'>"+stn[ss]+"</span></td>";
|
||||||
h+="<td>"+(cu&&cu.bg===0?"<button class='btn btn-sm btn-o' style='padding:4px 7px;font-size:10px;margin-right:3px' onclick='editEventText("+e.id+")'>Ред.</button>":"")+"<button class='btn btn-sm' style='padding:4px 7px;font-size:10px' onclick='openEv("+e.id+","+si+")'>Откр.</button></td></tr>"
|
h+="<td><button class='btn btn-sm' style='padding:4px 7px;font-size:10px' onclick='openEv("+e.id+","+si+")'>Откр.</button></td></tr>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user