fix: visible resize handle via resizeConfig.handleComponent

This commit is contained in:
Sebastian Seedorf
2026-06-03 15:25:17 +02:00
parent d6c2bb0b6a
commit b9377daa04

View File

@@ -151,6 +151,18 @@ export default function Dashboard({ alerts }: Props) {
onLayoutChange={handleLayoutChange}
gridConfig={{ cols: COLS, rowHeight: ROW_HEIGHT, margin: [8, 8] }}
dragConfig={{ handle: '.drag-handle' }}
resizeConfig={{
handleComponent: (axis, ref) => (
<span ref={ref}
className="react-resizable-handle react-resizable-handle-se"
style={{
borderRight: '3px solid #4b5563',
borderBottom: '3px solid #4b5563',
opacity: 0.6,
}}
/>
),
}}
>
{charts.map(c => (
<div key={c.id} className="drag-handle cursor-grab active:cursor-grabbing">