This commit is contained in:
2025-03-21 22:40:00 +08:00
parent 7a4578c16d
commit 6e921e82fb
12 changed files with 146 additions and 19 deletions

View File

@@ -6,8 +6,8 @@ import { useDraggable } from "@dnd-kit/core";
import { useEffect, useRef, useState } from "react";
import { nearestMultiple } from "./utils";
import PreviewStore from "@/stores/previewStore";
import Logo from "../Logo";
import Text from "../Text";
import Logo from "../../widgets/Logo";
import Text from "../../widgets/Text";
export default function Draggable(props: DraggablePropsType) {
const targetRef = useRef<HTMLDivElement>(null);
@@ -78,7 +78,7 @@ export default function Draggable(props: DraggablePropsType) {
...style,
}} {...attributes}>
<button
className="btn absolute top-1 right-1 z-50 btn-square btn-soft"
className="btn absolute top-1 right-1 z-40 btn-square btn-soft"
{...listeners}
onMouseDown={(e) => e.stopPropagation()}
>