Skip to content

Commit 6c04714

Browse files
committed
replace edit dropdown with button
1 parent e15f9b6 commit 6c04714

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

client/packages/lowcoder/src/pages/setting/environments/EnvironmentDetail.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,17 @@ const EnvironmentDetail: React.FC = () => {
125125
<Breadcrumb.Item>{environment.environmentName}</Breadcrumb.Item>
126126
</Breadcrumb>
127127

128+
{/* Header with environment name and controls */}
128129
{/* Header with environment name and controls */}
129130
<div
130131
className="environment-header"
131132
style={{
132133
marginBottom: "24px",
133134
display: "flex",
134135
justifyContent: "space-between",
135-
alignItems: "flex-start", // Changed from center to allow wrapping
136-
flexWrap: "wrap", // Allow wrapping on small screens
137-
gap: "16px", // Add spacing between wrapped elements
136+
alignItems: "flex-start",
137+
flexWrap: "wrap",
138+
gap: "16px",
138139
}}
139140
>
140141
<div style={{ flex: "1 1 auto", minWidth: "200px" }}>
@@ -144,9 +145,13 @@ const EnvironmentDetail: React.FC = () => {
144145
<Text type="secondary">ID: {environment.environmentId}</Text>
145146
</div>
146147
<div style={{ flexShrink: 0 }}>
147-
<Dropdown overlay={actionsMenu} trigger={["click"]}>
148-
<Button icon={<MoreOutlined />} shape="circle" size="large" />
149-
</Dropdown>
148+
<Button
149+
icon={<EditOutlined />}
150+
onClick={handleEditClick}
151+
type="primary"
152+
>
153+
Edit Environment
154+
</Button>
150155
</div>
151156
</div>
152157

0 commit comments

Comments
 (0)