TagSpaces is an offline, open source, document manager with tagging support
change dir thumb path
Stanimir Marinovd3537301bc79
diff --git a/app/components/EntryProperties.js b/app/components/EntryProperties.jsindex c739524a2..90aaaa8df 100644--- a/app/components/EntryProperties.js+++ b/app/components/EntryProperties.js@@ -501,7 +501,17 @@ class EntryProperties extends Component<Props, State> {return <div />;}- if (thumbPath === undefined) thumbPath = getThumbFileLocationForFile(path);+ if (thumbPath === undefined) {+ if (this.state.isFile) {+ thumbPath = getThumbFileLocationForFile(path);+ } else {+ thumbPath = path ++ AppConfig.dirSeparator ++ AppConfig.metaFolder ++ AppConfig.dirSeparator ++ AppConfig.folderThumbFile;+ }+ }let thumbPathUrl = thumbPath ? 'url("' + thumbPath + '?' + new Date().getTime() + '")' : '';if (AppConfig.isWin) {thumbPathUrl = thumbPathUrl.split('\\').join('\\\\');@@ -796,8 +806,8 @@ class EntryProperties extends Component<Props, State> {style={{backgroundSize: 'cover',backgroundImage: thumbPathUrl,- height: 150,- width: '25%'+ height: 50,+ width: 50}}/><Buttondiff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex 0d30bb1b9..097a9f45b 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -411,5 +411,6 @@"sizeHuge": "Huge","tagProperties": "Tag Properties","startContentExtraction": "Extract Content",+ "thumbChooseFileTitle": "Thumb File Choose","-": "-"}