Skip to content

Commit 01f81d1

Browse files
committed
Fix button position
1 parent 94f827f commit 01f81d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

resources/dist/build/assets/addon-4f5cbe5b.js renamed to resources/dist/build/assets/addon-90981f4b.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/dist/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"css": [
88
"assets/addon-ca5a3bd1.css"
99
],
10-
"file": "assets/addon-4f5cbe5b.js",
10+
"file": "assets/addon-90981f4b.js",
1111
"isEntry": true,
1212
"src": "resources/js/addon.js"
1313
}

resources/js/addon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Statamic.booting(() => {
1010
Statamic.$bard.addExtension(({ bard }) => Ruby.configure({ bard }));
1111

1212
Statamic.$bard.buttons((buttons, button) => {
13-
return button({
13+
buttons.splice(buttons.indexOf('ruby'), 0, button({
1414
name: 'ruby',
1515
text: 'Ruby Text',
1616
html: '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M3.542 9.978h5.464v1.987H3.542V9.978Zm6.976 0h5.422v1.987h-5.422V9.978Zm5.422-1.231h-5.422V6.76h5.422v1.987Zm-6.934 0H3.542V6.76h5.464v1.987ZM.367 1.965v1.469h8.639V5.4H2.03v7.948h5.486c-1.339 1.706-3.844 3.239-7.516 4.6l.864 1.382c3.931-1.663 6.587-3.65 7.97-5.982h.172V20h1.512v-6.652h.152c1.598 2.419 4.341 4.384 8.228 5.874l.67-1.425c-3.412-1.08-5.939-2.549-7.538-4.449h5.421V5.4h-6.933V3.434h8.64V1.965h-8.64V0H9.006v1.965H.367Z" fill="currentColor" /></svg>',
1717
activeName: 'ruby',
1818
component: 'ruby-button'
19-
});
19+
}));
2020
});
2121

2222
});

0 commit comments

Comments
 (0)