From 443bfcdcff99215c1b06f8084fa06eaea148babc Mon Sep 17 00:00:00 2001
From: waynelwz <100347187+waynelwz@users.noreply.github.com>
Date: Tue, 9 Jan 2024 15:07:35 +0800
Subject: [PATCH] update(console): editor bubble menu invalid when readonly &
header dropdown zindex (#3118)
---
.../starwhale-ui/src/GridTable/components/TableActions.tsx | 2 +-
console/packages/starwhale-ui/src/TiptapEditor/index.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/console/packages/starwhale-ui/src/GridTable/components/TableActions.tsx b/console/packages/starwhale-ui/src/GridTable/components/TableActions.tsx
index f3ea59af71..5e2b3e3bfe 100644
--- a/console/packages/starwhale-ui/src/GridTable/components/TableActions.tsx
+++ b/console/packages/starwhale-ui/src/GridTable/components/TableActions.tsx
@@ -33,7 +33,7 @@ const getPopoverOverrides = ({ left, top }) => {
},
},
style: {
- zIndex: 999,
+ zIndex: 99,
},
},
}
diff --git a/console/packages/starwhale-ui/src/TiptapEditor/index.tsx b/console/packages/starwhale-ui/src/TiptapEditor/index.tsx
index 3a021cad55..b49e03ba1c 100644
--- a/console/packages/starwhale-ui/src/TiptapEditor/index.tsx
+++ b/console/packages/starwhale-ui/src/TiptapEditor/index.tsx
@@ -97,7 +97,7 @@ export default function TiptapEditor({ id = '', initialContent, editable, onSave
// tabIndex={0}
className='relative self-center min-h-[500px] w-full h-full bg-white sm:mb-[calc(10px)] sm:rounded-lg'
>
- {editor && }
+ {editor && editable && }
)