refactor(webui): misc fixes in ImageViewer
parent
6467d6c3b7
commit
b8a78e2c3a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue