Skip to content

Commit

Permalink
Fix styling for screenshot spoiler links
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Dec 5, 2024
1 parent b5fc217 commit 136f176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion play.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ body {
-webkit-text-fill-color: transparent;
}

.spoiler:not(.show) a {
.spoiler:not(.show):not(.screenshotItem:hover) a {
opacity: 0;
pointer-events: none;
}
Expand Down
6 changes: 4 additions & 2 deletions play.js
Original file line number Diff line number Diff line change
Expand Up @@ -2456,8 +2456,10 @@ function openWikiModal(url, asImg) {
wikiFrame.addEventListener('load', () => removeLoader(wikiModal), { once: true });
}
}
if (wikiModal.classList.contains('hidden'))
openModal('wikiModal');
if (wikiModal.classList.contains('hidden')) {
const activeModal = document.querySelector('#modalContainer .modal:not(.hidden)');
openModal('wikiModal', undefined, activeModal?.id);
}
}

function checkShowVersionUpdate() {
Expand Down

0 comments on commit 136f176

Please sign in to comment.