Skip to content

Commit 5c2de82

Browse files
fix(live): single header divider via inset shadow + transparent-border row gaps
The double line below the /live results-table header persisted through two box-shadow tweaks because the real cause is the 4px border-spacing gap directly below the sticky header — a second element no outset-shadow tuning fully hides. Adopt admin.html's proven approach (scoped to .table-wrap): border-spacing:0 + an INSET box-shadow (inset 0 -1px 0 var(--border)) that paints the 1px divider exactly AT the th's bottom edge, with row gaps recreated via a transparent td bottom-border (background-clip:padding-box). No 4px gap under the header → exactly one divider line. Test suite green (188/31/45/35).
1 parent a6f1709 commit 5c2de82

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

live.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,18 @@
380380
z-index: 10;
381381
}
382382

383+
/* DEFINITIVE single-line header — matches admin.html's working results table.
384+
The outset box-shadow above kept rendering TWO lines because the 4px
385+
border-spacing gap below the sticky header is a second element no shadow
386+
tuning fully hides. Instead: an INSET shadow paints the 1px divider exactly
387+
AT the th's bottom edge, and row gaps come from a transparent td
388+
bottom-border (background-clip:padding-box keeps the card out of the gap)
389+
rather than border-spacing — so there is no 4px gap directly under the
390+
header to render a second line. Scoped to .table-wrap (results table only). */
391+
.table-wrap table { border-spacing: 0; }
392+
.table-wrap thead th { box-shadow: inset 0 -1px 0 var(--border); }
393+
.table-wrap tbody td { border-bottom: 4px solid transparent; background-clip: padding-box; }
394+
383395
td {
384396
padding: 6px 6px;
385397
font-size: 12px;

0 commit comments

Comments
 (0)