From 8cef85314fbe9cb3fec29d039c84a359bf44e4ec Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Sun, 16 Aug 2026 11:22:14 -0500 Subject: [PATCH] Use button elements for labels --- main.js | 2 +- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/main.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index a1d6572..bee0d3d 100644 --- a/main.js +++ b/main.js @@ -1690,7 +1690,7 @@ var TagsPlugin = class extends import_impro_plugin.Plugin { container.addClass("label-badges"); for (const tag of entry.tags) { const description = this.data.tagDescriptions[tag]; - const badge = container.createDiv({ cls: "label-badge tag-badge" }); + const badge = container.createEl("button", { cls: "label-badge tag-badge" }); if (description) badge.setAttr("title", description); renderTagIcon(badge, this.getTagIcon(tag), "label-badge-image"); badge.createSpan({ cls: "label-badge-text", text: tag }); diff --git a/manifest.json b/manifest.json index 7fb10bd..f924922 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "tags", "name": "Tags", - "version": "0.4.4", + "version": "0.4.5", "author": "7778777.online", "description": "Privately tag accounts and see your tags next to them. Tags are stored in your account's private plugin settings — synced across your devices, visible only to you.", "permissions": { diff --git a/package-lock.json b/package-lock.json index 35e7305..0d75c40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tags", - "version": "0.4.2", + "version": "0.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "tags", - "version": "0.4.2", + "version": "0.4.5", "dependencies": { "@impro.social/impro-plugin": "file:../impro/impro-plugin" }, diff --git a/package.json b/package.json index 1f5c5d8..4b5d94a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tags", - "version": "0.4.4", + "version": "0.4.5", "type": "module", "scripts": { "start": "npm run watch", diff --git a/src/main.js b/src/main.js index 6850fe7..6a25bea 100644 --- a/src/main.js +++ b/src/main.js @@ -1879,7 +1879,7 @@ export default class TagsPlugin extends Plugin { container.addClass("label-badges"); for (const tag of entry.tags) { const description = this.data.tagDescriptions[tag]; - const badge = container.createDiv({ cls: "label-badge tag-badge" }); + const badge = container.createEl("button", { cls: "label-badge tag-badge" }); if (description) badge.setAttr("title", description); renderTagIcon(badge, this.getTagIcon(tag), "label-badge-image"); badge.createSpan({ cls: "label-badge-text", text: tag }); -- 2.51.2