Skip to content

Commit c94eca0

Browse files
author
FalkWolsky
committedFeb 9, 2025·
Small fixes for left menu after ANTd Update
1 parent 34faa66 commit c94eca0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎client/packages/lowcoder/src/pages/editor/LeftContent.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,10 @@ export const LeftContent = (props: LeftContentProps) => {
450450
open={info.show}
451451
onOk={() => setShowData([])}
452452
cancelButtonProps={{ style: { display: 'none' } }}
453-
maskClosable={true} // Prevent closing on background click
453+
closable={false}
454+
destroyOnClose={true}
455+
maskClosable={false}
456+
okText={trans("modalComp.close")}
454457
>
455458
<div
456459
style={{ whiteSpace: 'nowrap', wordWrap: 'normal', maxHeight: "calc(100vh - 400px)", overflow: "scroll" }}
@@ -491,6 +494,8 @@ export const LeftContent = (props: LeftContentProps) => {
491494
return (
492495
<DirectoryTreeStyle
493496
treeData={explorerData}
497+
checkable={false}
498+
selectable={false}
494499
icon={(props: any) => props.type && (
495500
<div style={{ margin: '16px 4px 0 -4px'}}>
496501
{CompStateIcon[props.type as UICompType] || <LeftCommon />}

‎client/packages/lowcoder/src/pages/editor/LeftLayersContent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
525525
onDrop={(info) => handleDrop(info)}
526526
treeData={componentTreeData}
527527
icon={(props: any) => props.type && (
528-
<div style={{ margin: '3px 4px 0 -4px'}}>
528+
<div style={{ margin: '16px 5px 0 -3px'}}>
529529
{CompStateIcon[props.type as UICompType] || <LeftCommon />}
530530
</div>
531531
)}

0 commit comments

Comments
 (0)
Please sign in to comment.