From 2a7faa3f09a4f163445cf05578bf7216443fde3d Mon Sep 17 00:00:00 2001 From: Pluto Date: Thu, 25 Sep 2025 11:46:54 +0530 Subject: [PATCH 01/25] refactor: move loading more styles inside the _style function for consistency --- .../BrowserScripts/RemoteFunctions.js | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js index 26a43dbef..034839778 100644 --- a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js +++ b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js @@ -2066,6 +2066,20 @@ function RemoteFunctions(config = {}) { font-size: 14px !important; } + .phoenix-loading-more { + display: flex !important; + align-items: center !important; + justify-content: center !important; + min-width: 120px !important; + height: 116px !important; + margin-left: 2px !important; + background: rgba(255,255,255,0.03) !important; + border-radius: 8px !important; + color: #e8eaf0 !important; + font-size: 12px !important; + border: 1px dashed rgba(255,255,255,0.1) !important; + } + .phoenix-ribbon-header { display: flex !important; width: 100% !important; @@ -2537,19 +2551,6 @@ function RemoteFunctions(config = {}) { // when loading more images we need to show the message at the end of the image ribbon const loadingIndicator = window.document.createElement('div'); loadingIndicator.className = 'phoenix-loading-more'; - loadingIndicator.style.cssText = ` - display: flex !important; - align-items: center !important; - justify-content: center !important; - min-width: 120px !important; - height: 116px !important; - margin-left: 2px !important; - background: rgba(255,255,255,0.03) !important; - border-radius: 8px !important; - color: #e8eaf0 !important; - font-size: 12px !important; - border: 1px dashed rgba(255,255,255,0.1) !important; - `; loadingIndicator.textContent = 'Loading...'; rowElement.appendChild(loadingIndicator); }, From d11100b9681707fc326a931394ac9df3798e89da Mon Sep 17 00:00:00 2001 From: Pluto Date: Thu, 25 Sep 2025 13:37:14 +0530 Subject: [PATCH 02/25] feat: localize all the strings used in image ribbon gallery --- src/LiveDevelopment/BrowserScripts/RemoteFunctions.js | 10 +++++----- src/LiveDevelopment/main.js | 7 ++++++- src/nls/root/strings.js | 5 +++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js index 034839778..b5e2bf148 100644 --- a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js +++ b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js @@ -2288,7 +2288,7 @@ function RemoteFunctions(config = {}) {