feat(ui): polish filter controls with pill styling and custom arrows
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 32s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m7s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 31s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 32s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m7s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 31s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
- controlsRow selects: pill shape (border-radius: 999px), appearance:none, custom SVG chevron arrow, hover/focus transitions - advancedToggle: pill button with border, matches select height - filterSelect (advanced panel): appearance:none, custom arrow, 8px radius, focus ring consistent with search input - clearButton: pill shape matching other controls - filters panel: separator line and spacing when expanded Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -88,30 +88,49 @@
|
|||||||
|
|
||||||
.filters {
|
.filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.75rem;
|
gap: 0.625rem;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
margin-top: 0.625rem;
|
||||||
|
padding-top: 0.625rem;
|
||||||
|
border-top: 1px solid var(--border-color, #e5dfd5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.filterSelect {
|
.filterSelect {
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 200px;
|
min-width: 180px;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.625rem 2.25rem 0.625rem 1rem;
|
||||||
font-size: 0.95rem;
|
font-size: 0.875rem;
|
||||||
border: 1px solid var(--border-color, #e5dfd5);
|
font-weight: 500;
|
||||||
border-radius: 6px;
|
font-family: inherit;
|
||||||
background: var(--bg-card, white);
|
border: 1.5px solid var(--border-color, #e5dfd5);
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: var(--bg-card, white);
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a847a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right 0.875rem center;
|
||||||
|
background-size: 10px 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: none;
|
outline: none;
|
||||||
color: var(--text-primary, #1a1612);
|
color: var(--text-primary, #1a1612);
|
||||||
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filterSelect:hover {
|
||||||
|
border-color: var(--text-muted, #8a847a);
|
||||||
}
|
}
|
||||||
|
|
||||||
.filterSelect:focus {
|
.filterSelect:focus {
|
||||||
border-color: var(--accent-coral, #e07256);
|
border-color: var(--accent-coral, #e07256);
|
||||||
|
box-shadow: 0 0 0 3px rgba(224, 114, 86, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearButton {
|
.clearButton {
|
||||||
padding: 0.75rem 1.25rem;
|
padding: 0.4rem 1rem;
|
||||||
font-size: 0.95rem;
|
font-size: 0.8125rem;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -157,29 +176,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.radiusLabel {
|
.radiusLabel {
|
||||||
font-size: 0.875rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--text-secondary);
|
font-weight: 500;
|
||||||
|
color: var(--text-secondary, #5a554d);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radiusSelect {
|
|
||||||
padding: 0.375rem 0.75rem;
|
|
||||||
border: 1px solid var(--border-color, #e0ddd8);
|
|
||||||
border-radius: var(--radius-md);
|
|
||||||
background: var(--bg-card);
|
|
||||||
color: var(--text-secondary);
|
|
||||||
font-size: 0.875rem;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Controls row (radius + phase + advanced toggle) ─── */
|
/* ── Controls row (radius + phase + advanced toggle) ─── */
|
||||||
.controlsRow {
|
.controlsRow {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
gap: 0.5rem;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-top: 0.75rem;
|
margin-top: 0.875rem;
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.875rem;
|
||||||
border-top: 1px solid var(--border-color, #e5dfd5);
|
border-top: 1px solid var(--border-color, #e5dfd5);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,19 +204,36 @@
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pill-style inline filter controls (radius + phase) */
|
||||||
.controlSelect {
|
.controlSelect {
|
||||||
padding: 0.375rem 0.75rem;
|
appearance: none;
|
||||||
font-size: 0.875rem;
|
-webkit-appearance: none;
|
||||||
border: 1px solid var(--border-color, #e5dfd5);
|
padding: 0.4rem 2rem 0.4rem 0.875rem;
|
||||||
border-radius: 6px;
|
font-size: 0.8125rem;
|
||||||
background: var(--bg-card, white);
|
font-weight: 500;
|
||||||
|
font-family: inherit;
|
||||||
|
border: 1.5px solid var(--border-color, #e5dfd5);
|
||||||
|
border-radius: 999px;
|
||||||
|
background-color: var(--bg-card, white);
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a847a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right 0.65rem center;
|
||||||
|
background-size: 10px 6px;
|
||||||
color: var(--text-primary, #1a1612);
|
color: var(--text-primary, #1a1612);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controlSelect:hover {
|
||||||
|
border-color: var(--text-muted, #8a847a);
|
||||||
|
background-color: var(--bg-secondary, #f8f4ef);
|
||||||
}
|
}
|
||||||
|
|
||||||
.controlSelect:focus {
|
.controlSelect:focus {
|
||||||
border-color: var(--accent-coral, #e07256);
|
border-color: var(--accent-coral, #e07256);
|
||||||
|
box-shadow: 0 0 0 3px rgba(224, 114, 86, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Advanced filters toggle ─────────────────────────── */
|
/* ── Advanced filters toggle ─────────────────────────── */
|
||||||
@@ -216,17 +243,22 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.375rem;
|
gap: 0.375rem;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: 1.5px solid var(--border-color, #e5dfd5);
|
||||||
padding: 0.375rem 0;
|
border-radius: 999px;
|
||||||
|
padding: 0.4rem 0.875rem;
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
color: var(--text-muted, #8a847a);
|
font-weight: 500;
|
||||||
|
color: var(--text-secondary, #5a554d);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
transition: color 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advancedToggle:hover {
|
.advancedToggle:hover {
|
||||||
color: var(--text-secondary, #5a554d);
|
border-color: var(--text-muted, #8a847a);
|
||||||
|
background-color: var(--bg-secondary, #f8f4ef);
|
||||||
|
color: var(--text-primary, #1a1612);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chevronDown,
|
.chevronDown,
|
||||||
@@ -234,14 +266,14 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-left: 4px solid transparent;
|
border-left: 3.5px solid transparent;
|
||||||
border-right: 4px solid transparent;
|
border-right: 3.5px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chevronDown {
|
.chevronDown {
|
||||||
border-top: 5px solid currentColor;
|
border-top: 4.5px solid currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chevronUp {
|
.chevronUp {
|
||||||
border-bottom: 5px solid currentColor;
|
border-bottom: 4.5px solid currentColor;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user