|
@@ -79,7 +79,7 @@ const StorageImage = styled.div`
|
|
|
margin-right: 16px;
|
|
margin-right: 16px;
|
|
|
`
|
|
`
|
|
|
const StorageTitle = styled.div`
|
|
const StorageTitle = styled.div`
|
|
|
- width: 320px;
|
|
|
|
|
|
|
+ width: ${props => props.width}px;
|
|
|
`
|
|
`
|
|
|
const StorageName = styled.div`
|
|
const StorageName = styled.div`
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
@@ -89,6 +89,7 @@ const StorageSubtitle = styled.div`
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
color: ${Palette.grayscale[5]};
|
|
color: ${Palette.grayscale[5]};
|
|
|
margin-top: 1px;
|
|
margin-top: 1px;
|
|
|
|
|
+ word-break: break-word;
|
|
|
`
|
|
`
|
|
|
const ArrowImage = styled.div`
|
|
const ArrowImage = styled.div`
|
|
|
min-width: 32px;
|
|
min-width: 32px;
|
|
@@ -147,6 +148,7 @@ export type Props = {
|
|
|
storageMap: ?StorageMap[],
|
|
storageMap: ?StorageMap[],
|
|
|
onChange: (sourceStorage: Disk, targetStorage: StorageBackend, type: 'backend' | 'disk') => void,
|
|
onChange: (sourceStorage: Disk, targetStorage: StorageBackend, type: 'backend' | 'disk') => void,
|
|
|
style?: any,
|
|
style?: any,
|
|
|
|
|
+ titleWidth?: number,
|
|
|
}
|
|
}
|
|
|
@observer
|
|
@observer
|
|
|
class WizardStorage extends React.Component<Props> {
|
|
class WizardStorage extends React.Component<Props> {
|
|
@@ -203,7 +205,7 @@ class WizardStorage extends React.Component<Props> {
|
|
|
return (
|
|
return (
|
|
|
<StorageItem key={disk[diskFieldName]}>
|
|
<StorageItem key={disk[diskFieldName]}>
|
|
|
<StorageImage backend={type === 'backend'} />
|
|
<StorageImage backend={type === 'backend'} />
|
|
|
- <StorageTitle>
|
|
|
|
|
|
|
+ <StorageTitle width={this.props.titleWidth || 320}>
|
|
|
<StorageName
|
|
<StorageName
|
|
|
data-test-id={`${TEST_ID}-${type}-source`}
|
|
data-test-id={`${TEST_ID}-${type}-source`}
|
|
|
title={diskNameParsed[1] ? disk[diskFieldName] : null}
|
|
title={diskNameParsed[1] ? disk[diskFieldName] : null}
|