Parcourir la source

Merge pull request #766 from smiclea/fix-path-truncation

Update WizardStorage style format and path display
Daniel Vincze il y a 2 ans
Parent
commit
54bff90ca1

+ 4 - 3
src/components/modules/WizardModule/WizardStorage/WizardStorage.tsx

@@ -75,8 +75,9 @@ const StorageItem = styled.div<any>`
 `;
 const StorageImage = styled.div<any>`
   ${ThemeProps.exactSize("48px")}
-  background: url('${props =>
-    props.backend ? backendImage : diskImage}') center no-repeat;
+  background: url('
+    ${props => (props.backend ? backendImage : diskImage)}
+  ') center no-repeat;
   margin-right: 16px;
 `;
 const StorageTitle = styled.div<any>`
@@ -289,7 +290,7 @@ class WizardStorage extends React.Component<Props> {
           true,
         ];
       }
-      return [`${dashPaths[0]}-...-${dashPaths[1]}`, true];
+      return [`${dashPaths[0]}-...-${dashPaths[dashPaths.length - 1]}`, true];
     };
 
     return (