From f8faafe643b17e07ff4ae402277d785fc92f7a3d Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 00:00:02 +0000 Subject: [PATCH] Polish filter bar: consistent sizing, logical grouping with separators, tooltips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - All filter-bar controls now exactly 34px tall with line-height:1 and border-radius:6px - col-toggle-btn matched to same height/font-size as other controls - Controls grouped into 4 logical sections (Filters, Display, Sort, Columns) with vertical separators - Added title attributes with helpful descriptions to all controls - Added sort help icon (ⓘ) with detailed tooltip explaining each sort mode - Mobile responsive: separators hidden on small screens --- public/index.html | 4 ++-- public/packets.js | 47 ++++++++++++++++++++++++++++------------------- public/style.css | 13 +++++++++---- 3 files changed, 39 insertions(+), 25 deletions(-) diff --git a/public/index.html b/public/index.html index 05b75ff..96000ea 100644 --- a/public/index.html +++ b/public/index.html @@ -22,7 +22,7 @@ - + - + diff --git a/public/packets.js b/public/packets.js index c9216b9..96d3df9 100644 --- a/public/packets.js +++ b/public/packets.js @@ -405,26 +405,35 @@
- -
- - +
+ +
+ + +
+ +
+
- -
- - - - -
- -
+
+ + +
+
+ + +
+
+
+ +
+
diff --git a/public/style.css b/public/style.css index 7b2d033..b09bb65 100644 --- a/public/style.css +++ b/public/style.css @@ -190,15 +190,18 @@ a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible .filter-bar input, .filter-bar select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--input-bg); color: var(--text); font-family: var(--font); - height: 34px; box-sizing: border-box; + height: 34px; box-sizing: border-box; line-height: 1; } .filter-bar input { width: 120px; } .filter-bar select { min-width: 90px; } .filter-bar .btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--input-bg); cursor: pointer; font-size: 13px; transition: all .15s; - font-family: var(--font); color: var(--text); height: 34px; box-sizing: border-box; + font-family: var(--font); color: var(--text); height: 34px; box-sizing: border-box; line-height: 1; } +.filter-group { display: flex; gap: 6px; align-items: center; } +.filter-group + .filter-group { border-left: 1px solid var(--border); padding-left: 12px; margin-left: 6px; } +.sort-help { cursor: help; font-size: 14px; color: var(--text-muted, #888); } .filter-bar .btn:hover { background: var(--row-hover); } .filter-bar .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); } @@ -853,6 +856,8 @@ button.ch-item.selected { background: var(--selected-bg); } .filter-bar.filters-expanded > .col-toggle-wrap { display: inline-block; } .filter-bar.filters-expanded input { width: 100%; } .filter-bar.filters-expanded select { width: 100%; } + .filter-group { flex-wrap: wrap; } + .filter-group + .filter-group { border-left: none; padding-left: 0; margin-left: 0; } .filter-bar .btn { min-height: 36px; } .node-filter-wrap { width: 100%; } @@ -1271,7 +1276,7 @@ tr[data-hops]:hover { background: rgba(59,130,246,0.1); } /* #71 — Column visibility toggle */ .col-toggle-wrap { position: relative; display: inline-block; } -.col-toggle-btn { font-size: .8rem; padding: 4px 8px; cursor: pointer; background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); } +.col-toggle-btn { font-size: 13px; padding: 6px 10px; cursor: pointer; background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); height: 34px; box-sizing: border-box; line-height: 1; } .col-toggle-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 0; min-width: 150px; box-shadow: 0 4px 12px rgba(0,0,0,.15); } .col-toggle-menu.open { display: block; } .col-toggle-menu label { display: flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: .82rem; cursor: pointer; color: var(--text); } @@ -1471,7 +1476,7 @@ tr[data-hops]:hover { background: rgba(59,130,246,0.1); } display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); transition: all 0.15s; - height: 34px; box-sizing: border-box; white-space: nowrap; + height: 34px; box-sizing: border-box; white-space: nowrap; line-height: 1; } .region-dropdown-trigger:hover { border-color: var(--accent); color: var(--accent); } .region-dropdown-menu {