Skip to content

Commit 67c3705

Browse files
committed
cleanup
1 parent 3abbcbe commit 67c3705

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

backend/custom_admin/src/components/shared/django-admin-layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ type Props = {
1212

1313
export const DjangoAdminLayout = ({ children }: Props) => {
1414
const { breadcrumbs } = useArgs();
15-
console.log("breadcrumbs", breadcrumbs);
1615
return (
1716
<div>
1817
<Header />

backend/custom_admin/src/components/shared/rich-editor/button-node.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Action = ({
1212
children,
1313
className,
1414
tooltip,
15-
visibleOnHover = false,
15+
visibleOnlyOnHover = false,
1616
...props
1717
}) => (
1818
<Tooltip content={tooltip}>
@@ -23,7 +23,7 @@ const Action = ({
2323
className={clsx(
2424
"rounded-[var(--radius-6)] transition-all absolute text-black bg-white",
2525
{
26-
"group-hover/button:opacity-100 opacity-0": visibleOnHover,
26+
"group-hover/button:opacity-100 opacity-0": visibleOnlyOnHover,
2727
},
2828
className,
2929
)}
@@ -53,7 +53,7 @@ const ButtonComponent = (props) => {
5353
<Dialog.Root>
5454
<Dialog.Trigger>
5555
<Action
56-
visibleOnHover={!!link}
56+
visibleOnlyOnHover={!!link}
5757
data-drag-handle
5858
tooltip={link ? "Change link" : "No link set"}
5959
className={clsx(
@@ -83,7 +83,7 @@ const ButtonComponent = (props) => {
8383
</Dialog.Root>
8484

8585
<Action
86-
visibleOnHover
86+
visibleOnlyOnHover
8787
onClick={(_) => props.deleteNode()}
8888
tooltip="Remove"
8989
className="top-0 -translate-x-[50%] -translate-y-[50%] left-0 bg-[var(--crimson-5)]"

backend/custom_admin/src/components/shared/rich-editor/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Placeholder from "@tiptap/extension-placeholder";
55
import TextAlign from "@tiptap/extension-text-align";
66
import TextStyle from "@tiptap/extension-text-style";
77
import Underline from "@tiptap/extension-underline";
8-
import { BubbleMenu, EditorContent, useEditor } from "@tiptap/react";
8+
import { EditorContent, useEditor } from "@tiptap/react";
99
import StarterKit from "@tiptap/starter-kit";
1010
import clsx from "clsx";
1111
import { ButtonNode } from "./button-node";
@@ -73,7 +73,6 @@ export const RichEditor = ({
7373
return (
7474
<div className="border">
7575
<MenuBar hide={hide} editor={editor} />
76-
<BubbleMenu editor={editor}>abc</BubbleMenu>
7776
<EditorContent editor={editor} className="prose max-w-none p-4" />
7877
</div>
7978
);

0 commit comments

Comments
 (0)