From 8ca00c2138bfa02cbd1cf7adb1f58c4720b7f43a Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 6 Feb 2025 17:29:41 +0200 Subject: [PATCH] client: use the icon action style for the help buttons of the attachment pages --- .../widgets/type_widgets/attachment_detail.js | 11 ++++++----- .../app/widgets/type_widgets/attachment_list.js | 13 +++++++------ src/public/stylesheets/style.css | 17 +++++++++-------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/public/app/widgets/type_widgets/attachment_detail.js b/src/public/app/widgets/type_widgets/attachment_detail.js index 15932d63b..108c5da2e 100644 --- a/src/public/app/widgets/type_widgets/attachment_detail.js +++ b/src/public/app/widgets/type_widgets/attachment_detail.js @@ -48,11 +48,12 @@ export default class AttachmentDetailTypeWidget extends TypeWidget { this.$wrapper.empty(); this.children = []; - const $helpButton = $( - '' - ); + const $helpButton = $(` + ' - ); + const $helpButton = $(` + + `); utils.initHelpButtons($helpButton); const noteLink = await linkService.createLink(this.noteId); // do separately to avoid race condition between empty() and .append() @@ -52,7 +53,7 @@ export default class AttachmentListTypeWidget extends TypeWidget { this.$linksWrapper.empty().append( $("
").append(t("attachment_list.owning_note"), noteLink), - $("
").append( + $(`
`).append( $('