From e58d6f07705e3781030c1673dc0ad486ea72937b Mon Sep 17 00:00:00 2001 From: jelveh Date: Sun, 6 Jul 2025 14:54:55 -0700 Subject: [PATCH] Enhance test UI with sticky headers and checkbox groups - Added sticky positioning for h2 headers in the test section. - Updated h2 elements to include checkboxes for grouping tests (File System, Key Value Store, AI). - Implemented event listeners to synchronize individual test checkboxes with their respective group checkboxes. - Simplified select/unselect all functionality to update group checkboxes accordingly. --- src/puter-js/test/run.html | 86 ++++++++++++++++++++++++++++++++------ 1 file changed, 73 insertions(+), 13 deletions(-) diff --git a/src/puter-js/test/run.html b/src/puter-js/test/run.html index beca0a18..dd0b9cf0 100644 --- a/src/puter-js/test/run.html +++ b/src/puter-js/test/run.html @@ -92,6 +92,33 @@ .test-run-button:disabled:hover { background-color: #999; } + + /* Make h2 headers sticky */ + #tests h2 { + position: sticky; + top: 78px; /* Position below the fixed nav */ + background-color: white; + padding: 20px 0; + margin: 20px 0 10px 0; + border-bottom: 2px solid #ddd; + z-index: 10; + font-size: 18px; + font-weight: bold; + } + + /* Style for h2 checkboxes */ + #tests h2 input[type="checkbox"] { + margin-right: 10px; + transform: scale(1.2); + } + + #tests h2 label { + cursor: pointer; + display: flex; + align-items: center; + padding-left: 10px; + font-size: 25px; + }