File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { filterEmptyItem } from '../helper';
99import { useSuspendedBackendaiClient , useWebUINavigate } from '../hooks' ;
1010import { SessionLauncherFormValue } from './SessionLauncherPage' ;
1111import { AppstoreAddOutlined , FolderAddOutlined } from '@ant-design/icons' ;
12- import { Card , Col , Row } from 'antd' ;
12+ import { Card , Col , Grid , Row } from 'antd' ;
1313import _ from 'lodash' ;
1414import { useState } from 'react' ;
1515import { 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 = { {
Original file line number Diff line number Diff line change 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" : {
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" : {
You can’t perform that action at this time.
0 commit comments