Commit 600036d1 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

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

fix not able to exit metadata popup when pop up is too big
parents 41255527 01c8f180
...@@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) { ...@@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
} }
}); });
} }
window.addEventListener("keydown", function(event) {
if (event.key == "Escape") {
closePopup();
}
});
...@@ -646,6 +646,8 @@ table.popup-table .link{ ...@@ -646,6 +646,8 @@ table.popup-table .link{
margin: auto; margin: auto;
padding: 2em; padding: 2em;
z-index: 1001; z-index: 1001;
max-height: 90%;
max-width: 90%;
} }
/* fullpage image viewer */ /* fullpage image viewer */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment