refactor(webui): misc fixes in ImageViewer

fix/notes-editor
Tomáš Mládek 2024-01-28 17:01:33 +01:00
parent 6467d6c3b7
commit b8a78e2c3a
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,5 @@
<script lang="ts">
import type { IEntry } from '@upnd/upend/types';
import api from '$lib/api';
import { useEntity } from '$lib/entity';
import IconButton from '../../utils/IconButton.svelte';
@ -83,8 +82,7 @@
let a8sLinkAddress: string;
async function loaded() {
// noinspection TypeScriptCheckImport
const { Annotorious } = (await import('@recogito/annotorious')) as any;
const { Annotorious } = await import('@recogito/annotorious');
if (anno) {
anno.destroy();
@ -236,6 +234,8 @@
on:keydown={(ev) => {
if (ev.key === 'Enter') clicked();
}}
role="button"
tabindex="0"
>
<img
class="preview-image"