diff --git a/main.ts b/main.ts index 18164c7..d19e112 100644 --- a/main.ts +++ b/main.ts @@ -129,9 +129,13 @@ export default class DividerPlugin extends Plugin { * @param divider */ async renderDivider(divider: Divider) { + if (document.body.hasClass("is-phone")) { + return; + } + const dividerIconEl = this.addRibbonIcon( "", - `-`, + `ribbon-divider-${divider.id}`, (evt: MouseEvent) => {} ); dividerIconEl.addClass("ribbon-divider"); diff --git a/manifest.json b/manifest.json index a20da37..6e32f5e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "ribbon-divider", "name": "Ribbon Divider", - "version": "1.1.0", + "version": "1.1.1", "minAppVersion": "0.15.0", "description": "Allows you to add dividers to the ribbon to space out your icons.", "author": "Andrew McGivery", diff --git a/package.json b/package.json index 107c5ed..a2113e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-ribbon-divider", - "version": "1.1.0", + "version": "1.1.1", "description": "A plugin for Obsidian.MD that allows you to add dividers to the ribbon to space out your icons.", "main": "dist/main.js", "scripts": { diff --git a/versions.json b/versions.json index ba03a86..25538e0 100644 --- a/versions.json +++ b/versions.json @@ -6,5 +6,6 @@ "1.1.0-beta.4": "0.15.0", "1.1.0-beta.5": "0.15.0", "1.1.0-beta.6": "0.15.0", - "1.1.0": "0.15.0" + "1.1.0": "0.15.0", + "1.1.1": "0.15.0" } \ No newline at end of file