From 533396d3869b44fbfcc8669272a2b5eb5bc6012c Mon Sep 17 00:00:00 2001 From: Eike Kettner <eike.kettner@posteo.de> Date: Sat, 8 Feb 2020 18:01:39 +0100 Subject: [PATCH] Using the new preview route to show the attachment in webui --- modules/microsite/docs/features.md | 8 +++----- modules/webapp/src/main/elm/Comp/ItemDetail.elm | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/microsite/docs/features.md b/modules/microsite/docs/features.md index 78e7fd84..5e9ec6ba 100644 --- a/modules/microsite/docs/features.md +++ b/modules/microsite/docs/features.md @@ -32,8 +32,6 @@ considering docspell at the moment. Hopefully they will be resolved eventually…. - Only PDF files possible for now. -- The PDF view in the Web-UI relies on the browsers capabilities. - Sadly, not all browsers can display PDF files. Some may require - extra plugins. And it's especially sad, that mobile browsers wont't - display the files. It works with the major desktop browsers - (firefox, chromium), though. +- No fulltext search implemented. This currently has very low + priority, because I myself never needed it. Open an issue if you + find it important. diff --git a/modules/webapp/src/main/elm/Comp/ItemDetail.elm b/modules/webapp/src/main/elm/Comp/ItemDetail.elm index e95dcd84..9c0bc7c6 100644 --- a/modules/webapp/src/main/elm/Comp/ItemDetail.elm +++ b/modules/webapp/src/main/elm/Comp/ItemDetail.elm @@ -1202,7 +1202,9 @@ renderAttachmentView model pos attach = , ( "invisible hidden", isAttachMetaOpen model attach.id ) ] ] - [ embed [ src fileUrl, type_ attach.contentType ] + [ iframe + [ src (fileUrl ++ "/view") + ] [] ] , div