diff --git a/react/src/components/BAITable.tsx b/react/src/components/BAITable.tsx index 17b7c5fdf..2ce02e1b4 100644 --- a/react/src/components/BAITable.tsx +++ b/react/src/components/BAITable.tsx @@ -145,6 +145,8 @@ const BAITable: React.FC = ({ return ( = ({ children }) => { ), sorter: (a, b) => localeCompare(getImageFullName(a), getImageFullName(b)), + width: token.screenXS, }, { title: t('environment.Registry'), @@ -433,7 +435,8 @@ const CustomizedImageList: React.FC = ({ children }) => { {t('button.Refresh')} -
diff --git a/react/src/components/ImageList.tsx b/react/src/components/ImageList.tsx index 60bdcfb49..241d06649 100644 --- a/react/src/components/ImageList.tsx +++ b/react/src/components/ImageList.tsx @@ -11,6 +11,7 @@ import { useSuspendedBackendaiClient, useUpdatableState, } from '../hooks'; +import BAITable from './BAITable'; import DoubleTag from './DoubleTag'; import ImageInstallModal from './ImageInstallModal'; import { ImageTags } from './ImageTags'; @@ -31,7 +32,7 @@ import { VerticalAlignBottomOutlined, } from '@ant-design/icons'; import { useLocalStorageState } from 'ahooks'; -import { App, Button, Input, Table, Tag, theme, Typography } from 'antd'; +import { App, Button, Input, Tag, theme, Typography } from 'antd'; import { ColumnsType, ColumnType } from 'antd/es/table'; import graphql from 'babel-plugin-relay/macro'; import _ from 'lodash'; @@ -152,6 +153,7 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => { ), sorter: (a, b) => localeCompare(getImageFullName(a), getImageFullName(b)), + width: token.screenXS, }, { title: t('environment.Registry'), @@ -518,7 +520,8 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => { {t('environment.Install')} - +