Skip to content

Commit

Permalink
fix: css class precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Dec 19, 2023
1 parent 95941c9 commit 9f8b85f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions canvas/src/blocks/machine/components/MemoryViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ export const MemoryViewer = memo((props: Props) => {
className={cn(
"select-none text-crimson-11 bg-stone-800 px-1 cursor-pointer",
!selected && !highlighted && u === 0 && "text-gray-8",
selected && "bg-yellow-5 text-yellow-11 hover:text-yellow-12",
!selected && "hover:text-crimson-12",
!canDragOut &&
selected &&
"bg-yellow-5 text-yellow-11 hover:text-yellow-12",
!canDragOut && !selected && "hover:text-crimson-12",
full && "text-center",
canDragOut && !selected && "opacity-0 bg-transparent",
canDragOut &&
Expand Down

0 comments on commit 9f8b85f

Please sign in to comment.