From b082f95d422833cd25cd194d83a4e5f2c5a4488e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 12 Mar 2025 03:32:54 +0200 Subject: [PATCH] style/content renderer: add icons to the "download" and "open" buttons --- src/public/app/services/content_renderer.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/public/app/services/content_renderer.ts b/src/public/app/services/content_renderer.ts index c1ee2a416..14e42aced 100644 --- a/src/public/app/services/content_renderer.ts +++ b/src/public/app/services/content_renderer.ts @@ -199,8 +199,19 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent: if (entityType === "notes" && "noteId" in entity) { // TODO: we should make this available also for attachments, but there's a problem with "Open externally" support // in attachment list - const $downloadButton = $(''); - const $openButton = $(''); + const $downloadButton = $(` + + `); + + const $openButton = $(` + + `); $downloadButton.on("click", () => openService.downloadFileNote(entity.noteId)); $openButton.on("click", () => openService.openNoteExternally(entity.noteId, entity.mime));