1
1
import React , { useState , useEffect } from "react" ;
2
- import { Alert , Empty , Spin , Row , Col , Card } from "antd" ;
2
+ import { Alert , Empty , Spin , Card } from "antd" ;
3
3
import { SyncOutlined , CloudServerOutlined } from "@ant-design/icons" ;
4
4
import { AddIcon , Search , TacoButton } from "lowcoder-design" ;
5
5
import { useHistory } from "react-router-dom" ;
@@ -19,6 +19,7 @@ const EnvironmentsWrapper = styled.div`
19
19
flex-direction: column;
20
20
width: 100%;
21
21
height: 100%;
22
+ min-width: 1000px;
22
23
` ;
23
24
24
25
const HeaderWrapper = styled . div `
@@ -209,17 +210,17 @@ const EnvironmentsList: React.FC = () => {
209
210
{ /* Environment Type Statistics */ }
210
211
{ ! isLoading && environments . length > 0 && (
211
212
< StatsWrapper >
212
- < Row gutter = { [ 16 , 16 ] } style = { { marginBottom : '20px' } } >
213
+ < div style = { { display : 'flex' , gap : '16px' , marginBottom : '20px' , flexWrap : 'wrap ' } } >
213
214
{ 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' } } >
215
216
< StatCard
216
217
title = { type }
217
218
value = { count }
218
219
color = { getEnvironmentTagColor ( type . toLowerCase ( ) ) }
219
220
/>
220
- </ Col >
221
+ </ div >
221
222
) ) }
222
- </ Row >
223
+ </ div >
223
224
</ StatsWrapper >
224
225
) }
225
226
0 commit comments