feat(viewer): merge filter row into table header using placeholder text
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -289,6 +289,10 @@ body {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.data-table thead th:has(.col-filter) {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.kv-table th {
|
||||
width: 1%;
|
||||
}
|
||||
@@ -335,29 +339,40 @@ body {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.filter-row th {
|
||||
background: var(--surface-2);
|
||||
padding: 5px 8px;
|
||||
border-top: 1px solid var(--border-lite);
|
||||
}
|
||||
|
||||
.col-filter-text {
|
||||
width: 100%;
|
||||
min-width: 40px;
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 3px;
|
||||
padding: 4px 6px;
|
||||
padding: 2px 4px;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
background: var(--surface);
|
||||
font-size: inherit;
|
||||
font-weight: 700;
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.col-filter-text:focus-visible {
|
||||
.col-filter-text::placeholder {
|
||||
color: var(--ink);
|
||||
opacity: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.col-filter-text:focus-visible,
|
||||
.col-filter-text:hover {
|
||||
border-color: var(--border);
|
||||
background: var(--surface);
|
||||
font-weight: 400;
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.col-filter-text:not(:placeholder-shown) {
|
||||
border-color: var(--border);
|
||||
background: var(--surface);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.col-filter-select {
|
||||
width: 100%;
|
||||
min-width: 40px;
|
||||
|
||||
Reference in New Issue
Block a user