Skip to content

Commit 06e7cfa

Browse files
committed
style: Improve Start page grid size for XXL screen
1 parent f1de8b7 commit 06e7cfa

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

react/src/pages/StartPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { filterEmptyItem } from '../helper';
99
import { useSuspendedBackendaiClient, useWebUINavigate } from '../hooks';
1010
import { SessionLauncherFormValue } from './SessionLauncherPage';
1111
import { AppstoreAddOutlined, FolderAddOutlined } from '@ant-design/icons';
12-
import { Card, Col, Row } from 'antd';
12+
import { Card, Col, Grid, Row } from 'antd';
1313
import _ from 'lodash';
1414
import { useState } from 'react';
1515
import { useTranslation } from 'react-i18next';
@@ -160,6 +160,8 @@ const StartPage: React.FC = () => {
160160
!_.includes(inactiveList, item.requiredMenuKey),
161161
);
162162

163+
Grid.useBreakpoint();
164+
163165
return (
164166
<Flex direction="column" gap={'md'} align="stretch">
165167
{/* <BAIBoard
@@ -178,7 +180,7 @@ const StartPage: React.FC = () => {
178180
<Row gutter={[16, 16]}>
179181
{_.map(items, (item, idx) => {
180182
return (
181-
<Col key={item.id} xs={24} md={12} xl={6}>
183+
<Col key={item.id} xs={24} md={12} xl={6} xxl={4}>
182184
<Card
183185
style={{ height: 340 }}
184186
styles={{

resources/theme.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"colorInfo": "#028DF2",
1010
"colorError": "#FF4D4F",
1111
"colorSuccess": "#00BD9B",
12-
"colorFillSecondary": "#D9D9D9"
12+
"colorFillSecondary": "#D9D9D9",
13+
"screenXLMax": 1919,
14+
"screenXXLMin": 1920,
15+
"screenXXL": 1920
1316
},
1417
"components": {
1518
"Tag": {
@@ -34,7 +37,10 @@
3437
"colorInfo": "#009BDD",
3538
"colorError": "#DC4446",
3639
"colorSuccess": "#03A487",
37-
"colorFillSecondary": "#262626"
40+
"colorFillSecondary": "#262626",
41+
"screenXLMax": 1919,
42+
"screenXXLMin": 1920,
43+
"screenXXL": 1920
3844
},
3945
"components": {
4046
"Tag": {

0 commit comments

Comments
 (0)