Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Sep 10, 2024
1 parent 5ed6d6b commit 0f72c34
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/public/web-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class Spinner extends HTMLElement {
isBusy (message){
const shadowRoot = document.querySelector('spinner-component').shadowRoot;
this.spinner = shadowRoot.querySelector("#resourcesLoaderIsBusy");
this.spinner.style.display = 'block' ;
this.text = 'shadowRoot.querySelector("#resourcesLoaderIsBusyMessage")';
this.spinner.style.display = message ? 'block' : 'none';
this.text = shadowRoot.querySelector("#resourcesLoaderIsBusyMessage");
this.text.innerText = message || '';
}
}
Expand Down Expand Up @@ -275,6 +275,14 @@ class ResourcesComponent extends HTMLElement {
background-color: #00000096;
border-radius: 3px;
}
.select-option{
text-align: left;
content-visibility:auto;
background-size: 25px;
background-repeat: no-repeat;
background-position-x: right;
background-clip: padding-box;
}
</style>
<div id="resources-editor" style="display:flex;flex-direction:column;width: 100%;height:100%; overflow: hidden;">
<div class="flex-wrap" style="gap: 10px;padding-bottom:2px;">
Expand Down Expand Up @@ -415,7 +423,7 @@ class ResourcesComponent extends HTMLElement {
const fileData = resourcesData[fileKey];
const isCommitted = 'committed' in fileData; //add this field when saving
return `<div value="${fileKey}" id="${fileKey}" class="select-option" data-src="${fileData.src}" title="${fileKey}" style="${!isCommitted &&
'border-left:3px solid'}content-visibility:auto;background-size: 25px;background-repeat: no-repeat;background-position-x: right;background-clip: padding-box;">
'border-left:3px solid'}">
${fileKey}
</div>`;
});
Expand Down

0 comments on commit 0f72c34

Please sign in to comment.