diff --git a/src/main/resources/static/css/styles.css b/src/main/resources/static/css/styles.css
index 11f6c5a..7f10a36 100644
--- a/src/main/resources/static/css/styles.css
+++ b/src/main/resources/static/css/styles.css
@@ -1835,7 +1835,7 @@ button:disabled:hover {
overflow: hidden;
}
-.asset-row strong {
+.asset-row strong, .asset-row small {
white-space: nowrap;
overflow: hidden;
}
diff --git a/src/main/resources/static/js/admin/console.js b/src/main/resources/static/js/admin/console.js
index f486811..4d178d7 100644
--- a/src/main/resources/static/js/admin/console.js
+++ b/src/main/resources/static/js/admin/console.js
@@ -1338,7 +1338,7 @@ export function createAdminConsole({
}
const playPromise = element.play();
if (playPromise?.catch) {
- playPromise.catch(() => {});
+ playPromise.catch(() => { });
}
}
@@ -1347,7 +1347,7 @@ export function createAdminConsole({
return null;
}
if (isCodeAsset(asset)) {
- return `Script order ${getScriptLayerPosition(asset.id)} (above canvas assets)`;
+ return `Order ${getScriptLayerPosition(asset.id)}`;
}
return `Order ${getLayerPosition(asset.id)}`;
}
@@ -1527,7 +1527,7 @@ export function createAdminConsole({
audioAssets.forEach((asset) => appendAssetListItem(list, asset));
}
if (codeAssets.length) {
- list.appendChild(createSectionHeader("Script assets (always on top)"));
+ list.appendChild(createSectionHeader("Script assets"));
codeAssets.forEach((asset) => appendAssetListItem(list, asset));
}
@@ -1649,8 +1649,8 @@ export function createAdminConsole({
const fallbackPromise = isVideoAsset(asset)
? captureVideoFrame(asset)
: isGifAsset(asset)
- ? captureGifFrame(asset)
- : Promise.resolve(null);
+ ? captureGifFrame(asset)
+ : Promise.resolve(null);
return fallbackPromise.then((result) => {
if (!result) {
return null;
@@ -1682,7 +1682,7 @@ export function createAdminConsole({
if (!dataUrl) return;
applyPreviewFrame(element, dataUrl);
})
- .catch(() => {});
+ .catch(() => { });
}
function applyPreviewFrame(element, dataUrl) {
@@ -1716,7 +1716,7 @@ export function createAdminConsole({
img.src = dataUrl;
previewImageCache.set(asset.id, { src: dataUrl, image: img });
})
- .catch(() => {});
+ .catch(() => { });
return null;
}
@@ -2511,18 +2511,18 @@ export function createAdminConsole({
interactionState =
handle === "rotate"
? {
- mode: "rotate",
- assetId: current.id,
- startAngle: angleFromCenter(current, point),
- startRotation: current.rotation || 0,
- }
+ mode: "rotate",
+ assetId: current.id,
+ startAngle: angleFromCenter(current, point),
+ startRotation: current.rotation || 0,
+ }
: {
- mode: "resize",
- assetId: current.id,
- handle,
- startLocal: pointerToLocal(current, point),
- original: { ...current },
- };
+ mode: "resize",
+ assetId: current.id,
+ handle,
+ startLocal: pointerToLocal(current, point),
+ original: { ...current },
+ };
canvas.style.cursor = cursorForHandle(handle);
drawAndList();
return;
diff --git a/src/main/resources/static/js/customAssets.js b/src/main/resources/static/js/customAssets.js
index 882f537..8b5c92a 100644
--- a/src/main/resources/static/js/customAssets.js
+++ b/src/main/resources/static/js/customAssets.js
@@ -807,7 +807,7 @@ export function createCustomAssetModal({
importButton.type = "button";
importButton.className = "icon-button";
importButton.setAttribute("aria-label", "Import script");
- importButton.innerHTML = '';
+ importButton.innerHTML = '';
importButton.addEventListener("click", () => importMarketplaceScript(entry));
actions.appendChild(heartButton);
actions.appendChild(importButton);