Skip to content

Commit 6ee55e2

Browse files
Allow editing folder name + handle queries name overflow issue
1 parent 96da6e4 commit 6ee55e2

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

client/packages/lowcoder-design/src/components/edit.tsx

+10-8
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const TextWrapper = styled.div`
5353
white-space: nowrap;
5454
`;
5555
const EditIcon = styled(Edit)`
56-
visibility: hidden;
56+
// visibility: hidden;
5757
margin-left: 8px;
5858
flex-shrink: 0;
5959
`;
@@ -130,13 +130,15 @@ export const EditText = (props: EditTextProps) => {
130130
<TextWrapper className={"taco-edit-text-body"} title={props.text}>
131131
{props.text}
132132
</TextWrapper>
133-
<EditIcon
134-
onClick={(e) => {
135-
e.stopPropagation();
136-
!props.disabled && setEditing(true);
137-
}}
138-
className={"taco-edit-text-icon"}
139-
/>
133+
{props.forceClickIcon && !props.disabled && (
134+
<EditIcon
135+
onClick={(e) => {
136+
e.stopPropagation();
137+
!props.disabled && setEditing(true);
138+
}}
139+
className={"taco-edit-text-icon"}
140+
/>
141+
)}
140142
</EditTextWrapper>
141143
)}
142144
{props.prefixIcon && <Prefix>{props.prefixIcon}</Prefix>}

client/packages/lowcoder/src/pages/editor/bottom/BottomSidebar.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ export function BottomSidebar(props: BottomSidebarProps) {
320320
}
321321

322322
const HighlightBorder = styled.div<{ $active: boolean; $foldable: boolean; $level: number }>`
323+
max-width: 100%;
323324
flex: 1;
324325
display: flex;
325326
padding-left: ${(props) => props.$level * 20 + (props.$foldable ? 0 : 14)}px;

0 commit comments

Comments
 (0)