aboutsummaryrefslogtreecommitdiff
path: root/apps/web/components
diff options
context:
space:
mode:
authorcodetorso <[email protected]>2024-07-25 21:51:58 +0530
committercodetorso <[email protected]>2024-07-25 21:51:58 +0530
commit3c91c188a4667e15486e18c909f615f8eebaf8bb (patch)
tree6ea8b830dacb402ca91dd8d0e19cdd1230bbb6a1 /apps/web/components
parentlet's go boys!! canvas (diff)
downloadsupermemory-3c91c188a4667e15486e18c909f615f8eebaf8bb.tar.xz
supermemory-3c91c188a4667e15486e18c909f615f8eebaf8bb.zip
fix error on drop
Diffstat (limited to 'apps/web/components')
-rw-r--r--apps/web/components/canvas/custom_nodes/textcard.tsx19
1 files changed, 4 insertions, 15 deletions
diff --git a/apps/web/components/canvas/custom_nodes/textcard.tsx b/apps/web/components/canvas/custom_nodes/textcard.tsx
index e778eabb..db881fb4 100644
--- a/apps/web/components/canvas/custom_nodes/textcard.tsx
+++ b/apps/web/components/canvas/custom_nodes/textcard.tsx
@@ -31,24 +31,13 @@ export class textCardUtil extends BaseBoxShapeUtil<ITextCardShape> {
return (
<HTMLContainer
onPointerDown={isEditing ? stopEventPropagation : undefined}
- className="flex h-full w-full items-center justify-center"
- style={{
- pointerEvents: isEditing ? "all" : "none",
- }}
+ className={`flex h-full w-full items-center justify-center ${isEditing ? "pointer-events-auto" : "pointer-events-none"}`}
>
<div
- className="overflow-hidden"
- style={{
- height: s.props.h,
- width: s.props.w,
- pointerEvents: "all",
- background: "#232c2f",
- borderRadius: "16px",
- border: "2px solid #374151",
- padding: "8px 14px",
- }}
+ className={`overflow-hidden bg-[#232c2f] pointer-events-auto rounded-md border-2 border-[#374151] py-2 px-4
+ h-[${s.props.h}]px w-[${s.props.w}]px`}
>
- <h2 style={{ color: "#95A0AB" }}>{s.props.type}</h2>
+ <h2 className="text-[#95A0AB]">{s.props.type}</h2>
{isEditing ? (
<input
value={s.props.content}