Skip to content

Commit

Permalink
feat: update layout for selected node
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Jan 7, 2025
1 parent cfe47b9 commit bbae640
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Html } from '@react-three/drei'
import { useFrame } from '@react-three/fiber'
import clsx from 'clsx'
import { useRef } from 'react'
import styled from 'styled-components'
import { Mesh, Vector3 } from 'three'
Expand Down Expand Up @@ -63,7 +64,7 @@ export const Node = ({ onClick, node, selected, rounded = true, x, y, z, id }: P
<Wrapper align="center" direction="row" justify="flex-start">
<>
{selected ? (
<Selected rounded={false}>
<Selected className={clsx({ 'has-padding': descriptionShortened })} rounded={false}>
{isAdmin && (
<EditButton onClick={() => openEditNodeNameModal()}>
<EditIcon />
Expand Down Expand Up @@ -157,7 +158,9 @@ const Selected = styled(Tag)`
font-family: Barlow;
font-weight: 700;
text-align: left;
padding: 12px;
&.has-padding {
padding: 12px;
}
.selected__title {
position: absolute;
Expand Down

0 comments on commit bbae640

Please sign in to comment.