This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch fix-clear-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 40a3572e6e78705d3fd645e422395a4f34a7533b
Author: mintsweet <[email protected]>
AuthorDate: Wed Oct 11 18:31:51 2023 +1300

    fix(config-ui): the style for text-tooltip
---
 .../src/components/tooltip/text-tooltip/index.tsx   | 21 ++++++++++++---------
 .../register/webook/components/create-dialog.tsx    |  2 +-
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/config-ui/src/components/tooltip/text-tooltip/index.tsx 
b/config-ui/src/components/tooltip/text-tooltip/index.tsx
index f501d6347..2c1b486b3 100644
--- a/config-ui/src/components/tooltip/text-tooltip/index.tsx
+++ b/config-ui/src/components/tooltip/text-tooltip/index.tsx
@@ -17,18 +17,21 @@
  */
 
 import type { IntentProps } from '@blueprintjs/core';
-import { Position } from '@blueprintjs/core';
-import { Tooltip2 } from '@blueprintjs/popover2';
+import { Position, Tooltip } from '@blueprintjs/core';
 import styled from 'styled-components';
 
 const Wrapper = styled.div`
   width: 100%;
 
-  & > .bp5-popover2-target {
-    display: block;
-    overflow: hidden;
-    white-space: nowrap;
-    text-overflow: ellipsis;
+  & > .bp5-popover-target {
+    width: 100%;
+
+    & > span {
+      display: block;
+      overflow: hidden;
+      white-space: nowrap;
+      text-overflow: ellipsis;
+    }
   }
 `;
 
@@ -41,9 +44,9 @@ interface Props extends IntentProps {
 export const TextTooltip = ({ intent, content, children, style }: Props) => {
   return (
     <Wrapper style={style}>
-      <Tooltip2 intent={intent} position={Position.TOP} content={content}>
+      <Tooltip intent={intent} position={Position.TOP} content={content}>
         {children}
-      </Tooltip2>
+      </Tooltip>
     </Wrapper>
   );
 };
diff --git a/config-ui/src/plugins/register/webook/components/create-dialog.tsx 
b/config-ui/src/plugins/register/webook/components/create-dialog.tsx
index 286ae4ce9..0bc1113c3 100644
--- a/config-ui/src/plugins/register/webook/components/create-dialog.tsx
+++ b/config-ui/src/plugins/register/webook/components/create-dialog.tsx
@@ -71,7 +71,7 @@ export const CreateDialog = ({ isOpen, onCancel, 
onSubmitAfter }: Props) => {
       setStep(2);
       setRecord({
         id: res.id,
-        postIssuesEndpoint: ` curl ${prefix}${res.postIssuesEndpoint} -X 
'POST' -H 'Authorization: Bearer ${res.apiKey}' -d '{
+        postIssuesEndpoint: `curl ${prefix}${res.postIssuesEndpoint} -X 'POST' 
-H 'Authorization: Bearer ${res.apiKey}' -d '{
    "issue_key":"DLK-1234",
    "title":"a feature from DLK",
    "type":"INCIDENT",

Reply via email to