Skip to content

Consistent UI for the Environments #1718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix layout issue for Environments List
  • Loading branch information
iamfaran committed May 28, 2025
commit d36c5dcf36b27d9f403ef1074f347b9682255f4c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import { Alert, Empty, Spin, Row, Col, Card } from "antd";
import { Alert, Empty, Spin, Card } from "antd";
import { SyncOutlined, CloudServerOutlined } from "@ant-design/icons";
import { AddIcon, Search, TacoButton } from "lowcoder-design";
import { useHistory } from "react-router-dom";
Expand All @@ -19,6 +19,7 @@ const EnvironmentsWrapper = styled.div`
flex-direction: column;
width: 100%;
height: 100%;
min-width: 1000px;
`;

const HeaderWrapper = styled.div`
Expand Down Expand Up @@ -209,17 +210,17 @@ const EnvironmentsList: React.FC = () => {
{/* Environment Type Statistics */}
{!isLoading && environments.length > 0 && (
<StatsWrapper>
<Row gutter={[16, 16]} style={{ marginBottom: '20px' }}>
<div style={{ display: 'flex', gap: '16px', marginBottom: '20px', flexWrap: 'wrap' }}>
{environmentStats.map(([type, count]) => (
<Col xs={24} sm={12} md={8} lg={6} key={type}>
<div key={type} style={{ minWidth: '200px', flex: '1' }}>
<StatCard
title={type}
value={count}
color={getEnvironmentTagColor(type.toLowerCase())}
/>
</Col>
</div>
))}
</Row>
</div>
</StatsWrapper>
)}

Expand Down