Skip to content

Commit

Permalink
feat: moved icons from clickable eria
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Oct 7, 2024
1 parent 0c2b01d commit 7ddb3b0
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 7ddb3b0

Please sign in to comment.