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.
|
||||
const PROGRESS_PHASES = [
|
||||
{ key: 'categories', label: 'Kategorien', totalKey: 'categoriestotal', doneKey: 'categoriesdone' },
|
||||
@@ -833,10 +828,10 @@ export default class ImportExportSettingsPanel extends Component {
|
||||
<Box
|
||||
title={streamedHash}
|
||||
sx={{
|
||||
width: 36,
|
||||
height: 36,
|
||||
width: 18,
|
||||
height: 18,
|
||||
flex: '0 0 auto',
|
||||
borderRadius: 1,
|
||||
borderRadius: 0.5,
|
||||
overflow: 'hidden',
|
||||
border: '1px solid',
|
||||
borderColor: 'divider',
|
||||
@@ -845,14 +840,7 @@ export default class ImportExportSettingsPanel extends Component {
|
||||
>
|
||||
<SkeleHashImage hash={streamedHash} />
|
||||
</Box>
|
||||
<Typography
|
||||
variant="caption"
|
||||
color="text.secondary"
|
||||
sx={{ fontFamily: 'monospace' }}
|
||||
>
|
||||
{shortHash(streamedHash)}
|
||||
</Typography>
|
||||
<Typography variant="caption" color="text.secondary" sx={{ ml: 'auto' }}>
|
||||
<Typography variant="caption" color="text.secondary">
|
||||
{importedImageCount} Bild(er) verarbeitet
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user