Skip to content

Commit e17eda9

Browse files
committed
refactor: move loading more styles inside the _style function for consistency
1 parent 51a0881 commit e17eda9

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,20 @@ function RemoteFunctions(config = {}) {
20662066
font-size: 14px !important;
20672067
}
20682068
2069+
.phoenix-loading-more {
2070+
display: flex !important;
2071+
align-items: center !important;
2072+
justify-content: center !important;
2073+
min-width: 120px !important;
2074+
height: 116px !important;
2075+
margin-left: 2px !important;
2076+
background: rgba(255,255,255,0.03) !important;
2077+
border-radius: 8px !important;
2078+
color: #e8eaf0 !important;
2079+
font-size: 12px !important;
2080+
border: 1px dashed rgba(255,255,255,0.1) !important;
2081+
}
2082+
20692083
.phoenix-ribbon-header {
20702084
display: flex !important;
20712085
width: 100% !important;
@@ -2537,19 +2551,6 @@ function RemoteFunctions(config = {}) {
25372551
// when loading more images we need to show the message at the end of the image ribbon
25382552
const loadingIndicator = window.document.createElement('div');
25392553
loadingIndicator.className = 'phoenix-loading-more';
2540-
loadingIndicator.style.cssText = `
2541-
display: flex !important;
2542-
align-items: center !important;
2543-
justify-content: center !important;
2544-
min-width: 120px !important;
2545-
height: 116px !important;
2546-
margin-left: 2px !important;
2547-
background: rgba(255,255,255,0.03) !important;
2548-
border-radius: 8px !important;
2549-
color: #e8eaf0 !important;
2550-
font-size: 12px !important;
2551-
border: 1px dashed rgba(255,255,255,0.1) !important;
2552-
`;
25532554
loadingIndicator.textContent = 'Loading...';
25542555
rowElement.appendChild(loadingIndicator);
25552556
},

0 commit comments

Comments
 (0)