u
This commit is contained in:
@@ -43,11 +43,6 @@ function isZipFile(file) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function shortHash(hash) {
|
|
||||||
if (typeof hash !== 'string') return '';
|
|
||||||
return hash.length > 10 ? `${hash.slice(0, 8)}…` : hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Counter-based phases emitted by the `progress` event.
|
// Counter-based phases emitted by the `progress` event.
|
||||||
const PROGRESS_PHASES = [
|
const PROGRESS_PHASES = [
|
||||||
{ key: 'categories', label: 'Kategorien', totalKey: 'categoriestotal', doneKey: 'categoriesdone' },
|
{ key: 'categories', label: 'Kategorien', totalKey: 'categoriestotal', doneKey: 'categoriesdone' },
|
||||||
@@ -833,10 +828,10 @@ export default class ImportExportSettingsPanel extends Component {
|
|||||||
<Box
|
<Box
|
||||||
title={streamedHash}
|
title={streamedHash}
|
||||||
sx={{
|
sx={{
|
||||||
width: 36,
|
width: 18,
|
||||||
height: 36,
|
height: 18,
|
||||||
flex: '0 0 auto',
|
flex: '0 0 auto',
|
||||||
borderRadius: 1,
|
borderRadius: 0.5,
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
border: '1px solid',
|
border: '1px solid',
|
||||||
borderColor: 'divider',
|
borderColor: 'divider',
|
||||||
@@ -845,14 +840,7 @@ export default class ImportExportSettingsPanel extends Component {
|
|||||||
>
|
>
|
||||||
<SkeleHashImage hash={streamedHash} />
|
<SkeleHashImage hash={streamedHash} />
|
||||||
</Box>
|
</Box>
|
||||||
<Typography
|
<Typography variant="caption" color="text.secondary">
|
||||||
variant="caption"
|
|
||||||
color="text.secondary"
|
|
||||||
sx={{ fontFamily: 'monospace' }}
|
|
||||||
>
|
|
||||||
{shortHash(streamedHash)}
|
|
||||||
</Typography>
|
|
||||||
<Typography variant="caption" color="text.secondary" sx={{ ml: 'auto' }}>
|
|
||||||
{importedImageCount} Bild(er) verarbeitet
|
{importedImageCount} Bild(er) verarbeitet
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user