File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
backend/custom_admin/src/components/shared Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ type Props = {
1212
1313export const DjangoAdminLayout = ( { children } : Props ) => {
1414 const { breadcrumbs } = useArgs ( ) ;
15- console . log ( "breadcrumbs" , breadcrumbs ) ;
1615 return (
1716 < div >
1817 < Header />
Original file line number Diff line number Diff 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)]"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Placeholder from "@tiptap/extension-placeholder";
55import TextAlign from "@tiptap/extension-text-align" ;
66import TextStyle from "@tiptap/extension-text-style" ;
77import Underline from "@tiptap/extension-underline" ;
8- import { BubbleMenu , EditorContent , useEditor } from "@tiptap/react" ;
8+ import { EditorContent , useEditor } from "@tiptap/react" ;
99import StarterKit from "@tiptap/starter-kit" ;
1010import clsx from "clsx" ;
1111import { 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 ) ;
You can’t perform that action at this time.
0 commit comments