|
@@ -1,5 +1,5 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
-import { Card, Grid, Button, Row } from 'antd';
|
|
|
|
|
|
+import { Card, Grid, Button, Row, Flex } from 'antd';
|
|
import { CloseOutlined } from '@ant-design/icons';
|
|
import { CloseOutlined } from '@ant-design/icons';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { useSelector } from 'react-redux';
|
|
import { useSelector } from 'react-redux';
|
|
@@ -39,7 +39,7 @@ const SelectedProtocolList: React.FC<SelectedProtocolListProps> = () => {
|
|
};
|
|
};
|
|
|
|
|
|
return (
|
|
return (
|
|
- <Row>
|
|
|
|
|
|
+ <Row className="h-full overflow-auto">
|
|
{selectedViews.map((item: View) => (
|
|
{selectedViews.map((item: View) => (
|
|
<Card
|
|
<Card
|
|
key={item.internal_id}
|
|
key={item.internal_id}
|
|
@@ -47,22 +47,9 @@ const SelectedProtocolList: React.FC<SelectedProtocolListProps> = () => {
|
|
style={{
|
|
style={{
|
|
width: cardSize.width,
|
|
width: cardSize.width,
|
|
height: cardSize.height,
|
|
height: cardSize.height,
|
|
- display: 'flex',
|
|
|
|
- alignItems: 'center',
|
|
|
|
- justifyContent: 'center',
|
|
|
|
- position: 'relative',
|
|
|
|
- marginBottom: 16,
|
|
|
|
- marginRight: 16,
|
|
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
- <div
|
|
|
|
- style={{
|
|
|
|
- display: 'flex',
|
|
|
|
- flexDirection: 'column',
|
|
|
|
- alignItems: 'center',
|
|
|
|
- }}
|
|
|
|
- className="overflow-clip"
|
|
|
|
- >
|
|
|
|
|
|
+ <Flex>
|
|
<img
|
|
<img
|
|
alt="example"
|
|
alt="example"
|
|
src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"
|
|
src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"
|
|
@@ -72,8 +59,8 @@ const SelectedProtocolList: React.FC<SelectedProtocolListProps> = () => {
|
|
objectFit: 'cover',
|
|
objectFit: 'cover',
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
- <span style={{ marginTop: 4 }}>{item.view_name}</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <span>{item.view_name}</span>
|
|
|
|
+ </Flex>
|
|
<Button
|
|
<Button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|