Skip to content

Feature extension #1334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 22, 2024
Prev Previous commit
Next Next commit
Fixed UI.
  • Loading branch information
Imiss-U1025 committed Nov 22, 2024
commit fdc01456321016875d70a486b006435ba91fd28e
20 changes: 6 additions & 14 deletions client/packages/lowcoder/src/pages/editor/right/ModulePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,12 @@ const ItemWrapper = styled.div`
margin-bottom: 0;
}
.module-container {
//width: 70px;
display: flex;
justify-content: space-between;
text-align: left;
}
.module-icon {

display: flex;
justify-content: center;
align-items: center;
margin: 4px;
margin-right: 4px;
width:19px;
height: 19px;
}
.module-content {
flex: 1;
Expand Down Expand Up @@ -249,10 +244,7 @@ function ModuleItem(props: ModuleItemProps) {
}}
>
<div className="module-container" >
<div className="module-icon">
<ModuleDocIcon width="19px" height="19px"/>
</div>

<ModuleDocIcon className="module-icon"/>
<div style={{flexGrow: 1, marginRight: "8px", width: "calc(100% - 62px)"}}>
<EditText
text={meta.name}
Expand Down Expand Up @@ -282,7 +274,7 @@ const HighlightBorder = styled.div<{ $active: boolean; $foldable: boolean; $leve
border-radius: 4px;
border: 1px solid ${(props) => (props.$active ? BorderActiveColor : "transparent")};
align-items: center;
justify-content: center;
justify-content: space-between;
`;

interface ColumnDivProps {
Expand Down Expand Up @@ -463,7 +455,7 @@ function ModuleSidebarItem(props: ModuleSidebarItemProps) {
{isFolder && <FoldIconBtn>{!isFolded ? <FoldedIcon /> : <UnfoldIcon />}</FoldIconBtn>}
{ isFolder ?
<>
<FileFolderIcon />
<FileFolderIcon style={{marginRight: "4px"}}/>
<div style={{ flexGrow: 1, marginRight: "8px", width: "calc(100% - 62px)" }}>
<EditText
text={name}
Expand Down