Merge pull request #8156 from bluelovers/pr/lightbox-001

feat: better lightbox when not enable zoom
This commit is contained in:
AUTOMATIC1111 2023-03-12 08:06:27 +03:00 committed by GitHub
commit 3e2ac603e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,7 @@ function showModal(event) {
if (modalImage.style.display === 'none') {
lb.style.setProperty('background-image', 'url(' + source.src + ')');
}
lb.style.display = "block";
lb.style.display = "flex";
lb.focus()
const tabTxt2Img = gradioApp().getElementById("tab_txt2img")

View File

@ -436,9 +436,7 @@ input[type="range"]{
#modalImage {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin: auto;
width: auto;
}