Skip to content

Commit 56afcd2

Browse files
committed
refactor: move image gallery button after select parent button so UI remains consistent
1 parent 9828ec0 commit 56afcd2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,13 +1367,6 @@ function RemoteFunctions(config = {}) {
13671367
${ICONS.ai}
13681368
</span>`;
13691369

1370-
// if its an image element, we show the image gallery icon
1371-
if (this.element && this.element.tagName.toLowerCase() === 'img') {
1372-
content += `<span data-action="image-gallery" title="${config.strings.imageGallery}">
1373-
${ICONS.imageGallery}
1374-
</span>`;
1375-
}
1376-
13771370
// Only include select parent option if element supports it
13781371
if (showSelectParentOption) {
13791372
content += `<span data-action="select-parent" title="${config.strings.selectParent}">
@@ -1388,6 +1381,13 @@ function RemoteFunctions(config = {}) {
13881381
</span>`;
13891382
}
13901383

1384+
// if its an image element, we show the image gallery icon
1385+
if (this.element && this.element.tagName.toLowerCase() === 'img') {
1386+
content += `<span data-action="image-gallery" title="${config.strings.imageGallery}">
1387+
${ICONS.imageGallery}
1388+
</span>`;
1389+
}
1390+
13911391
// Always include duplicate and delete options
13921392
content += `<span data-action="duplicate" title="${config.strings.duplicate}">
13931393
${ICONS.duplicate}

0 commit comments

Comments
 (0)