Skip to content

Commit 2590f72

Browse files
Fix: Add ribbon ids back to icon titles to stop issue where only 1 ribbon divider worked at a time
1 parent be25aec commit 2590f72

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Diff for: main.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ export default class DividerPlugin extends Plugin {
129129
* @param divider
130130
*/
131131
async renderDivider(divider: Divider) {
132+
if (document.body.hasClass("is-phone")) {
133+
return;
134+
}
135+
132136
const dividerIconEl = this.addRibbonIcon(
133137
"",
134-
`-`,
138+
`ribbon-divider-${divider.id}`,
135139
(evt: MouseEvent) => {}
136140
);
137141
dividerIconEl.addClass("ribbon-divider");

Diff for: manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "ribbon-divider",
33
"name": "Ribbon Divider",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"minAppVersion": "0.15.0",
66
"description": "Allows you to add dividers to the ribbon to space out your icons.",
77
"author": "Andrew McGivery",

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-ribbon-divider",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A plugin for Obsidian.MD that allows you to add dividers to the ribbon to space out your icons.",
55
"main": "dist/main.js",
66
"scripts": {

Diff for: versions.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"1.1.0-beta.4": "0.15.0",
77
"1.1.0-beta.5": "0.15.0",
88
"1.1.0-beta.6": "0.15.0",
9-
"1.1.0": "0.15.0"
9+
"1.1.0": "0.15.0",
10+
"1.1.1": "0.15.0"
1011
}

0 commit comments

Comments
 (0)