Skip to content

Commit

Permalink
Fix edit button in node not properly aligned when description is short
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb committed May 22, 2024
1 parent f38fe86 commit a6358da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ReactFlow/Nodes/FreelancerNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function FreelancerNode({ data }: NodeProps<FreelancerNodeData>) {
<Box w="15rem" p={2} boxShadow="base" borderRadius="lg" bgColor={bgColor}>
<Stack direction="row" spacing={2} align="center" w="full">
<Icon as={GrUserWorker} boxSize={5} color="gray.400" />
<Stack spacing={0} maxW="70%">
<Stack spacing={0} w="70%">
<Text fontWeight="bold" noOfLines={1}>
{data.member.name}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ReactFlow/Nodes/MemberNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function MemberNode({ data }: NodeProps<MemberNodeData>) {
) : (
<Icon as={GrUserManager} boxSize={5} color="gray.400" />
)}
<Stack spacing={0} maxW="70%">
<Stack spacing={0} w="70%">
<Text fontWeight={"bold"} noOfLines={1}>
{data.member.name}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ReactFlow/Nodes/RootNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function RootNode({ data }: NodeProps<RootNodeData>) {
<Box w="15rem" p={2} boxShadow="base" borderRadius="lg" bgColor={bgColor}>
<Stack direction="row" spacing={2} align="center" w="full">
<Icon as={GrUserManager} boxSize={5} color="gray.400" />
<Stack spacing={0} maxW="70%">
<Stack spacing={0} w="70%">
<Text fontWeight="bold" noOfLines={1}>
{data.member.name}
</Text>
Expand Down

0 comments on commit a6358da

Please sign in to comment.