Skip to content

Commit

Permalink
Merge pull request #2306 from stakwork/feature/allow-click
Browse files Browse the repository at this point in the history
feat: moved icons from clickable eria
  • Loading branch information
Rassl authored Oct 7, 2024
2 parents 0c2b01d + 7ddb3b0 commit 4ffb20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Universe/Graph/Cubes/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export const TextNode = memo(({ node, hide }: Props) => {
<meshStandardMaterial color="blue" />

{/* Attach SVG as HTML over the sphere, and it will move with the sphere */}
<Html center distanceFactor={100}>
<div style={{ color: '#fff', fontSize: '200px' }}>{Icon && <Icon />}</div>
<Html center distanceFactor={100} position={[20, 20, 20]}>
<div style={{ color: '#fff', fontSize: '200px', pointerEvents: 'none' }}>{Icon && <Icon />}</div>
</Html>
</mesh>
</Select>
Expand Down

0 comments on commit 4ffb20d

Please sign in to comment.