fix: model download progress text overflow
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import breakpoints from '@/config/breakpoints';
|
import breakpoints from '@/config/breakpoints';
|
||||||
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
||||||
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
||||||
import { Col, FloatButton, Row, Spin } from 'antd';
|
import { Col, Row, Spin } from 'antd';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import ResizeObserver from 'rc-resize-observer';
|
import ResizeObserver from 'rc-resize-observer';
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
@@ -122,7 +122,6 @@ const CardList: React.FC<CatalogListProps> = (props) => {
|
|||||||
/>
|
/>
|
||||||
</InfiniteScroller>
|
</InfiniteScroller>
|
||||||
</ResizeObserver>
|
</ResizeObserver>
|
||||||
<FloatButton.BackTop visibilityHeight={1000} />
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { DoubleRightOutlined } from '@ant-design/icons';
|
import { DoubleRightOutlined } from '@ant-design/icons';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import { Button } from 'antd';
|
import { Button, FloatButton } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -45,6 +45,7 @@ const InfiniteScroller: React.FC<
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<FloatButton.BackTop visibilityHeight={1000} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createContext, useContext } from 'react';
|
import { createContext, useContext } from 'react';
|
||||||
|
|
||||||
interface ScrollerContextProps {
|
interface ScrollerContextProps {
|
||||||
total: number;
|
total: number; // total pages
|
||||||
current: number;
|
current: number;
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
refresh: (nextPage: number) => void;
|
refresh: (nextPage: number) => void;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import CardSkeleton from '@/components/templates/card-skelton';
|
|||||||
import breakpoints from '@/config/breakpoints';
|
import breakpoints from '@/config/breakpoints';
|
||||||
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
||||||
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
||||||
import { Col, FloatButton, Row, Spin } from 'antd';
|
import { Col, Row, Spin } from 'antd';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import ResizeObserver from 'rc-resize-observer';
|
import ResizeObserver from 'rc-resize-observer';
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
@@ -139,7 +139,6 @@ const CardList: React.FC<BackendListProps> = (props) => {
|
|||||||
<ListSkeleton span={span} loading={loading} isFirst={isFirst} />
|
<ListSkeleton span={span} loading={loading} isFirst={isFirst} />
|
||||||
</InfiniteScroller>
|
</InfiniteScroller>
|
||||||
</ResizeObserver>
|
</ResizeObserver>
|
||||||
<FloatButton.BackTop visibilityHeight={1000} />
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import breakpoints from '@/config/breakpoints';
|
|||||||
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
import InfiniteScroller from '@/pages/_components/infinite-scroller';
|
||||||
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
import { useScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import { Col, FloatButton, Row, Spin } from 'antd';
|
import { Col, Row, Spin } from 'antd';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import ResizeObserver from 'rc-resize-observer';
|
import ResizeObserver from 'rc-resize-observer';
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
@@ -106,7 +106,6 @@ const CatalogList: React.FC<CatalogListProps> = (props) => {
|
|||||||
<ListSkeleton span={span} loading={loading} isFirst={isFirst} />
|
<ListSkeleton span={span} loading={loading} isFirst={isFirst} />
|
||||||
</InfiniteScroller>
|
</InfiniteScroller>
|
||||||
</ResizeObserver>
|
</ResizeObserver>
|
||||||
<FloatButton.BackTop visibilityHeight={1000} />
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -94,6 +94,9 @@ const draftModelDownloadList: ColumnProps[] = [
|
|||||||
title: 'models.form.draftModel',
|
title: 'models.form.draftModel',
|
||||||
locale: true,
|
locale: true,
|
||||||
key: 'draft_model',
|
key: 'draft_model',
|
||||||
|
style: {
|
||||||
|
wordBreak: 'break-word'
|
||||||
|
},
|
||||||
width: 280
|
width: 280
|
||||||
},
|
},
|
||||||
...statusColumn
|
...statusColumn
|
||||||
|
|||||||
Reference in New Issue
Block a user