Skip to content

Commit c94eca0

Browse files
author
FalkWolsky
committed
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

Lines changed: 6 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy