Skip to content

Commit

Permalink
Fix: Add ribbon ids back to icon titles to stop issue where only 1 ri…
Browse files Browse the repository at this point in the history
…bbon divider worked at a time
  • Loading branch information
andrewmcgivery committed Mar 26, 2024
1 parent be25aec commit 2590f72
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
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": "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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 2590f72

Please sign in to comment.