Skip to content

TagSpaces is an offline, open source, document manager with tagging support

feat: adding tmb path to the file viewer

Ilian Sapundshievf46de0ce33fc
diff --git a/src/renderer/components/FileView.tsx b/src/renderer/components/FileView.tsx
index 9cba6fb27..7b7edabc3 100644
--- a/src/renderer/components/FileView.tsx
+++ b/src/renderer/components/FileView.tsx
@@ -218,6 +218,9 @@ function FileView(props: Props) {
? '&query=' + encodeURIComponent(searchQuery.textQuery)
: '';
const locale = '&locale=' + i18n.language;
+ const thumb = openedEntry.meta?.thumbPath
+ ? '&thumb=' + encodeURIComponent(openedEntry.meta?.thumbPath)
+ : '';
const theming =
'&theme=' +
theme.palette.mode +
@@ -231,6 +234,7 @@ function FileView(props: Props) {
encodeURIComponent(
openedEntry.url ? openedEntry.url : openedEntry.path,
) +
+ thumb +
locale +
theming +
extQuery +