From c994b8aad196d4d2e9f8ada3a4c05e8f4a7577a7 Mon Sep 17 00:00:00 2001 From: Talal Abou Haiba Date: Mon, 30 Dec 2024 21:55:59 -0800 Subject: [PATCH] Fix #4 - reduce opacity of clicked items --- main.ts | 5 ++++- manifest.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index e4e0f8f..f56facf 100644 --- a/main.ts +++ b/main.ts @@ -240,7 +240,10 @@ class DocumentSelectorModal extends Modal { this.displayTags(tagDiv, documentId); const imgElement = imageDiv.createEl('img'); imgElement.width = 260; - imgElement.onclick = () => createDocument(this.editor, this.settings, documentId); + imgElement.onclick = () => { + createDocument(this.editor, this.settings, documentId); + overallDiv.setCssStyles({opacity: '0.5'}) + } this.displayThumbnail(imgElement, documentId); } }, {threshold: [0.1]}); diff --git a/manifest.json b/manifest.json index 3dd357e..ebf40b3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "paperless", "name": "Paperless", - "version": "0.0.8", + "version": "0.0.9", "minAppVersion": "0.15.0", "description": "Link your paperless-ngx documents within your vault.", "author": "Talal Abou Haiba",