diff --git a/src/webapp/features/graph/components/graphView/GraphFilterPanel.module.css b/src/webapp/features/graph/components/graphView/GraphFilterPanel.module.css index 2a391e74..858f7cc3 100644 --- a/src/webapp/features/graph/components/graphView/GraphFilterPanel.module.css +++ b/src/webapp/features/graph/components/graphView/GraphFilterPanel.module.css @@ -2,34 +2,22 @@ position: absolute; top: 16px; right: 16px; - background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 8px; padding: 16px; z-index: 10; min-width: 240px; max-width: 280px; - transition: all 0.3s ease; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .panel.collapsed { min-width: auto; padding: 8px; - width: 40px; } .toggleButton { position: absolute; top: 8px; right: 8px; - color: rgba(255, 255, 255, 0.7); - transition: color 0.2s ease; -} - -.toggleButton:hover { - color: rgba(255, 255, 255, 1); } .panel.collapsed .toggleButton { diff --git a/src/webapp/features/graph/components/graphView/GraphFilterPanel.tsx b/src/webapp/features/graph/components/graphView/GraphFilterPanel.tsx index 850f1672..02292914 100644 --- a/src/webapp/features/graph/components/graphView/GraphFilterPanel.tsx +++ b/src/webapp/features/graph/components/graphView/GraphFilterPanel.tsx @@ -9,6 +9,7 @@ import { ActionIcon, Group, Slider, + Paper, } from '@mantine/core'; import { IoChevronBack, IoChevronForward } from 'react-icons/io5'; import styles from './GraphFilterPanel.module.css'; @@ -72,12 +73,19 @@ export default function GraphFilterPanel({ const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed); return ( - + {/* Collapse/Expand Button */} setIsCollapsed(!isCollapsed)} - variant="subtle" + variant="filled" + radius={'xl'} size="sm" aria-label={isCollapsed ? 'Expand panel' : 'Collapse panel'} > @@ -91,7 +99,7 @@ export default function GraphFilterPanel({ {/* Panel Content */} {!isCollapsed && ( - + Graph Filters @@ -125,14 +133,16 @@ export default function GraphFilterPanel({ )} {/* Node Type Filters */} - - + + Node Types {NODE_TYPES.filter((type) => !hiddenNodeTypeControls.has(type)).map( (type) => ( - {NODE_TYPE_LABELS[type]} + + {NODE_TYPE_LABELS[type]} + onNodeTypeToggle(type)} @@ -145,12 +155,14 @@ export default function GraphFilterPanel({ {/* Edge Type Filters */} - + Edge Types {EDGE_TYPES.map((type) => ( - {EDGE_TYPE_LABELS[type]} + + {EDGE_TYPE_LABELS[type]} + onEdgeTypeToggle(type)} @@ -161,6 +173,6 @@ export default function GraphFilterPanel({ )} - + ); }