mirror of
https://github.com/harness/drone.git
synced 2025-05-05 02:21:00 +08:00
fix: [code-1756]: fix aida btn (#1210)
This commit is contained in:
parent
fb78234a0f
commit
740d47529a
@ -270,7 +270,7 @@ export function MarkdownEditorWithPreview({
|
||||
}
|
||||
setFlag?.(false)
|
||||
}
|
||||
}, [handleCopilotClick]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
}, [handleCopilotClick, flag]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
useEffect(() => {
|
||||
if (!isEmpty(data)) {
|
||||
|
@ -268,6 +268,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
.popoverDescriptionbox {
|
||||
:global {
|
||||
.bp3-popover-content {
|
||||
padding: var(--spacing-small);
|
||||
max-width: 700px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.copyButton {
|
||||
--button-height: 14px !important;
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ export declare const mergeContainer: string
|
||||
export declare const mergedBox: string
|
||||
export declare const optionMenuIcon: string
|
||||
export declare const popover: string
|
||||
export declare const popoverDescriptionbox: string
|
||||
export declare const refreshIcon: string
|
||||
export declare const repeatBtn: string
|
||||
export declare const rightTextPadding: string
|
||||
|
@ -97,6 +97,9 @@ export const DescriptionBox: React.FC<DescriptionBoxProps> = ({
|
||||
repoMetadata={repoMetadata}
|
||||
value={content}
|
||||
flag={flag}
|
||||
targetGitRef={pullReqMetadata?.target_branch}
|
||||
sourceGitRef={pullReqMetadata?.source_branch}
|
||||
handleCopilotClick={handleCopilotClick}
|
||||
setFlag={setFlag}
|
||||
outlets={{
|
||||
[CommentBoxOutletPosition.START_OF_MARKDOWN_EDITOR_TOOLBAR]: (
|
||||
@ -125,7 +128,7 @@ export const DescriptionBox: React.FC<DescriptionBoxProps> = ({
|
||||
interactionKind: 'hover',
|
||||
usePortal: true,
|
||||
position: PopoverPosition.BOTTOM_LEFT,
|
||||
popoverClassName: cx(css.popover)
|
||||
popoverClassName: cx(css.popoverDescriptionbox)
|
||||
}}
|
||||
/>
|
||||
) : null}
|
||||
|
Loading…
Reference in New Issue
Block a user