From 5e0dc7e7d4b11e2a29f2a1e75fe0bcd188e5264f Mon Sep 17 00:00:00 2001 From: Dauren777 Date: Fri, 12 Jun 2026 11:33:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20table=20readability=20+=20remove=20sub-i?= =?UTF-8?q?tem=20=D0=A0=D0=B5=D0=B4.=20button=20(use=20parent's)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 2ab5469..8ae94f3 100644 --- a/index.html +++ b/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 h3{font-size:16px;font-weight:700;margin-bottom:12px} 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{background:#F1F5F9;font-weight:600;font-size:11px;text-transform:uppercase;color:#64748B;white-space:nowrap} -tr:hover{background:#FAFBFC} +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;position:sticky;top:0;z-index:2} +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.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} @@ -1168,7 +1175,7 @@ function renderEv(){ h+=""+esc(e.sub[si].r||sr)+""; h+=""+(e.sub[si].due||e.due)+""; h+=""+stn[ss]+""; - h+=""+(cu&&cu.bg===0?"":"")+"" + h+="" } } }