Hide the image info when the mouse isn't over it

This commit is contained in:
cmdr2 2022-09-27 14:28:29 +05:30
parent 30c46c0858
commit 864fc84899
2 changed files with 3 additions and 2 deletions

View File

@ -212,7 +212,7 @@
</div> </div>
</body> </body>
<script src="media/main.js?v=5"></script> <script src="media/main.js?v=6"></script>
<script> <script>
async function init() { async function init() {
await loadModifiers() await loadModifiers()

View File

@ -439,6 +439,7 @@ async function doMakeImage(reqBody, batchCount) {
let imgItemInfo = document.createElement('span') let imgItemInfo = document.createElement('span')
imgItemInfo.className = 'imgItemInfo' imgItemInfo.className = 'imgItemInfo'
imgItemInfo.style.opacity = 0
let imgSeedLabel = document.createElement('span') let imgSeedLabel = document.createElement('span')
imgSeedLabel.className = 'imgSeedLabel' imgSeedLabel.className = 'imgSeedLabel'
@ -485,7 +486,7 @@ async function doMakeImage(reqBody, batchCount) {
}) })
imgItem.addEventListener('mouseleave', function() { imgItem.addEventListener('mouseleave', function() {
imgItemInfo.style.opacity = 0.5 imgItemInfo.style.opacity = 0
}) })
} }