diff --git a/src/web/App.mjs b/src/web/App.mjs index 8684f51c23..f3c9ae25bc 100755 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -866,7 +866,7 @@ class App { */ updateVisibility( elm, isVisible ){ isVisible ? elm.classList.remove("hidden") : elm.classList.add("hidden"); - } + }h /** * Set desktop UI ( on init and on window resize events ) @@ -901,7 +901,7 @@ class App { * Be mindful to update these fixed numbers accordingly in the stylesheets * ( themes/_structure ) if you make changes to those elements' height. */ - assignAvailableHeight( isMobile ){ + assignAvailableHeight(){ const bannerHeight = 40; const controlsHeight = 50; const operationsHeight = 80; diff --git a/src/web/HTMLOperation.mjs b/src/web/HTMLOperation.mjs index 1f77a5ed3f..6dfa2c44d9 100755 --- a/src/web/HTMLOperation.mjs +++ b/src/web/HTMLOperation.mjs @@ -71,9 +71,11 @@ class HTMLOperation { const favourites = JSON.parse(localStorage.favourites); const isFavourite = favourites.includes(this.name); - html += ` + if ( window.innerWidth < this.app.breakpoint ){ + html += ` ${isFavourite ? "star" : "star_outline"} ` + } html += "";