mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-07-04 16:48:26 +00:00
Use iframe for cross-browser pdf view (pdfjs)
Since some browsers (safari and some mobile ones) don't update their ui when the src attribute of an embed element changes, an iframe is used now. But only for the "cross browser" variant. Fixes: #1210
This commit is contained in:
@ -85,12 +85,12 @@ view texts flags settings model pos attach =
|
||||
, style "max-height" "calc(100vh - 140px)"
|
||||
, style "min-height" "500px"
|
||||
]
|
||||
[ embed
|
||||
[ src <| Data.UiSettings.pdfUrl settings flags fileUrl
|
||||
, class "absolute h-full w-full top-0 left-0 mx-0 py-0"
|
||||
[ Data.UiSettings.pdfView settings
|
||||
flags
|
||||
fileUrl
|
||||
[ class "absolute h-full w-full top-0 left-0 mx-0 py-0"
|
||||
, id "ds-pdf-view-iframe"
|
||||
]
|
||||
[]
|
||||
]
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user