Skip to content

Commit

Permalink
Merge pull request #569 from FalkorDB/fix-labels
Browse files Browse the repository at this point in the history
Fix #568 fix labels alignment and pointer events
  • Loading branch information
AviAvni authored Dec 9, 2024
2 parents f88da00 + 547a271 commit e6b08b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/graph/labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export default function Labels({ graph, categories, onClick, label, className =
onClick={() => handelScroll(-200)}
/>
}
<ul ref={listRef} className={cn("flex flex-col gap-4 w-full overflow-auto hide-scrollbar", label === "RelationshipTypes" && "items-end")}>
<ul ref={listRef} className={cn("flex flex-col gap-4 w-full overflow-auto hide-scrollbar")}>
{
categories.map((category) => (
<li key={category.index} className="pointer-events-auto">
<li key={category.index}>
<Button
className={cn(category.name && "flex gap-2 items-center")}
className={cn(category.name && "flex gap-2 items-center pointer-events-auto")}
label={category.name}
icon={
<div style={{ backgroundColor: `${graph.getCategoryColorValue(category.index)}` }} className={cn("w-6 h-6 rounded-full", label === "RelationshipTypes" && "opacity-50")} />
Expand All @@ -65,7 +65,7 @@ export default function Labels({ graph, categories, onClick, label, className =
{
isScrollable &&
<Button
className="pointer-events-auto"
className="pointer-events-auto"
icon={<ChevronDown />}
title="Scroll down"
onClick={() => handelScroll(200)}
Expand Down

0 comments on commit e6b08b7

Please sign in to comment.