Skip to content

Commit

Permalink
fix: the minimap is not displayed in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
moon-ds committed Oct 20, 2023
1 parent 92fce13 commit 4105b3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workspaces/tables/src/components/Minimap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const Minimap = ({ tableRef, footerRef, numberOfColumns }: MinimapProps) => {
borderColor: 'rgb(var(--piccolo))',
});

setVisible(true);
setVisible(false);

if (timeoutId) clearTimeout(timeoutId);

timeoutId = setTimeout(() => {
setVisible(false);
setVisible(true);
}, TIMEOUT);
}, [tableRef]);
useEffect(() => {
Expand All @@ -61,6 +61,7 @@ const Minimap = ({ tableRef, footerRef, numberOfColumns }: MinimapProps) => {
'pointer-events-none transition-opacity',
visible ? 'opacity-1' : 'opacity-0'
)}
ref={(tab: HTMLDivElement) => { tableRef.current = tab }}
>
<div className="grid grid-flow-col h-full gap-1 relative auto-cols-[minmax(0,_2fr)]">
<div
Expand Down

0 comments on commit 4105b3f

Please sign in to comment.