TagSpaces is an offline, open source, document manager with tagging support
fix: small ui improvements
Ilian Sapundshievc777575d09bf
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex 960b6e61e..0738c9782 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -1139,10 +1139,26 @@ function EntryProperties(props: Props) {startAdornment: (<InputAdornment position="end"><Stack- direction="row"+ direction="column"spacing={1}style={{ alignItems: 'center' }}>+ {!isReadOnlyMode &&+ !currentEntry.editMode &&+ editName === undefined &&+ editDescription === undefined && (+ <ProTooltip tooltip={i18n.t('changeThumbnail')}>+ <IconButton+ disabled={!Pro}+ color="primary"+ className={classes.button}+ style={{ whiteSpace: 'nowrap' }}+ onClick={toggleThumbFilesDialog}+ >+ <EditIcon />+ </IconButton>+ </ProTooltip>+ )}<ProTooltip tooltip={i18n.t('changeThumbnail')}><divrole="button"@@ -1160,22 +1176,6 @@ function EntryProperties(props: Props) {onClick={toggleThumbFilesDialog}/></ProTooltip>- {!isReadOnlyMode &&- !currentEntry.editMode &&- editName === undefined &&- editDescription === undefined && (- <ProTooltip tooltip={i18n.t('changeThumbnail')}>- <IconButton- disabled={!Pro}- color="primary"- className={classes.button}- style={{ whiteSpace: 'nowrap' }}- onClick={toggleThumbFilesDialog}- >- <EditIcon />- </IconButton>- </ProTooltip>- )}</Stack></InputAdornment>)@@ -1193,27 +1193,10 @@ function EntryProperties(props: Props) {startAdornment: (<InputAdornment position="end"><Stack- direction="row"+ direction="column"spacing={1}style={{ alignItems: 'center' }}>- <ProTooltip tooltip={i18n.t('changeBackgroundImage')}>- <div- role="button"- tabIndex={0}- style={{- backgroundSize: 'cover',- backgroundRepeat: 'no-repeat',- backgroundImage: bgndPathUrl,- backgroundPosition: 'center',- borderRadius: 8,- minHeight: 150,- minWidth: 150,- marginBottom: 5- }}- onClick={toggleBgndImgDialog}- />- </ProTooltip>{!isReadOnlyMode &&!currentEntry.editMode &&editName === undefined &&@@ -1232,6 +1215,23 @@ function EntryProperties(props: Props) {</IconButton></ProTooltip>)}+ <ProTooltip tooltip={i18n.t('changeBackgroundImage')}>+ <div+ role="button"+ tabIndex={0}+ style={{+ backgroundSize: 'cover',+ backgroundRepeat: 'no-repeat',+ backgroundImage: bgndPathUrl,+ backgroundPosition: 'center',+ borderRadius: 8,+ minHeight: 150,+ minWidth: 150,+ marginBottom: 5+ }}+ onClick={toggleBgndImgDialog}+ />+ </ProTooltip></Stack></InputAdornment>)@@ -1327,7 +1327,7 @@ const ThumbnailTextField = withStyles((theme: Theme) =>createStyles({root: {'& .MuiInputBase-root': {- height: 200+ height: 220}}})diff --git a/app/components/PathBreadcrumbs.tsx b/app/components/PathBreadcrumbs.tsxindex 7cd6de659..b83f6b421 100644--- a/app/components/PathBreadcrumbs.tsx+++ b/app/components/PathBreadcrumbs.tsx@@ -181,9 +181,11 @@ function PathBreadcrumbs(props: Props) {{/* <LocationMenu /> */}{pathParts.length > 0 &&pathParts.map(pathPart => (- <Tooltip title={i18n.t('core:navigateTo') + ' ' + pathPart}>+ <Tooltip+ key={pathPart}+ title={i18n.t('core:navigateTo') + ' ' + pathPart}+ ><StyledBreadcrumb- key={pathPart}component="a"href="#"label={extractShortDirectoryName(