diff --git a/web/src/lib/Figure.svelte b/web/src/lib/Figure.svelte index 8ce74c9..8b25453 100644 --- a/web/src/lib/Figure.svelte +++ b/web/src/lib/Figure.svelte @@ -80,6 +80,18 @@ return true; } + + /** + * Copy text to clipboard + * @param {string} text + */ + function copyToClipboard(text) { + navigator.clipboard.writeText(text).then(() => { + console.log('Text copied to clipboard'); + }).catch(err => { + console.error('Failed to copy text: ', err); + }); + }
@@ -154,7 +166,15 @@
{#each metadata_entries as entry}
- {entry.key}: + + {entry.key} + + {#if typeof entry.value === 'object'} {#if isValidOCRDataStructure(entry.value)}