Skip to content

Commit d36c5dc

Browse files
committed
Fix layout issue for Environments List
1 parent b2f7583 commit d36c5dc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from "react";
2-
import { Alert, Empty, Spin, Row, Col, Card } from "antd";
2+
import { Alert, Empty, Spin, Card } from "antd";
33
import { SyncOutlined, CloudServerOutlined } from "@ant-design/icons";
44
import { AddIcon, Search, TacoButton } from "lowcoder-design";
55
import { useHistory } from "react-router-dom";
@@ -19,6 +19,7 @@ const EnvironmentsWrapper = styled.div`
1919
flex-direction: column;
2020
width: 100%;
2121
height: 100%;
22+
min-width: 1000px;
2223
`;
2324

2425
const HeaderWrapper = styled.div`
@@ -209,17 +210,17 @@ const EnvironmentsList: React.FC = () => {
209210
{/* Environment Type Statistics */}
210211
{!isLoading && environments.length > 0 && (
211212
<StatsWrapper>
212-
<Row gutter={[16, 16]} style={{ marginBottom: '20px' }}>
213+
<div style={{ display: 'flex', gap: '16px', marginBottom: '20px', flexWrap: 'wrap' }}>
213214
{environmentStats.map(([type, count]) => (
214-
<Col xs={24} sm={12} md={8} lg={6} key={type}>
215+
<div key={type} style={{ minWidth: '200px', flex: '1' }}>
215216
<StatCard
216217
title={type}
217218
value={count}
218219
color={getEnvironmentTagColor(type.toLowerCase())}
219220
/>
220-
</Col>
221+
</div>
221222
))}
222-
</Row>
223+
</div>
223224
</StatsWrapper>
224225
)}
225226

0 commit comments

Comments
 (0)