Files
fnx_web/svelte/src/filesystem/viewers/PDF.svelte
Fornax 277637511c Split filesystem up in components
Also thumbnails work now
2023-05-17 15:34:56 +02:00

23 lines
418 B
Svelte

<script>
import { fs_file_url } from "../FilesystemUtil.js";
export let state
</script>
<iframe
class="container"
src={"/res/misc/pdf-viewer/web/viewer.html?file="+encodeURIComponent(fs_file_url(state.root.id, state.base.path))}
title="PDF viewer">
</iframe>
<style>
.container {
position: relative;
display: block;
height: 100%;
width: 100%;
text-align: center;
overflow: hidden;
border: none;
}
</style>