Merge pull request #14156 from AUTOMATIC1111/metadata-pop-up-size-limit

fix not able to exit metadata popup when pop up is too big
This commit is contained in:
AUTOMATIC1111 2023-12-02 09:30:27 +03:00 committed by GitHub
commit 600036d158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
}
});
}
window.addEventListener("keydown", function(event) {
if (event.key == "Escape") {
closePopup();
}
});

View File

@ -646,6 +646,8 @@ table.popup-table .link{
margin: auto;
padding: 2em;
z-index: 1001;
max-height: 90%;
max-width: 90%;
}
/* fullpage image viewer */