11import React , { useState , useEffect } from "react" ;
2- import { Alert , Empty , Spin , Row , Col , Card } from "antd" ;
2+ import { Alert , Empty , Spin , Card } from "antd" ;
33import { SyncOutlined , CloudServerOutlined } from "@ant-design/icons" ;
44import { AddIcon , Search , TacoButton } from "lowcoder-design" ;
55import { 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
2425const 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