Skip to content

Commit

Permalink
Fix #4 - reduce opacity of clicked items
Browse files Browse the repository at this point in the history
  • Loading branch information
Talal-A committed Dec 31, 2024
1 parent bc3dc52 commit c994b8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]});
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c994b8a

Please sign in to comment.