Skip to content
代码片段 群组 项目
未验证 提交 3e2ac603 编辑于 作者: AUTOMATIC1111's avatar AUTOMATIC1111 提交者: GitHub
浏览文件

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

feat: better lightbox when not enable zoom
No related branches found
No related tags found
无相关合并请求
...@@ -11,7 +11,7 @@ function showModal(event) { ...@@ -11,7 +11,7 @@ function showModal(event) {
if (modalImage.style.display === 'none') { if (modalImage.style.display === 'none') {
lb.style.setProperty('background-image', 'url(' + source.src + ')'); lb.style.setProperty('background-image', 'url(' + source.src + ')');
} }
lb.style.display = "block"; lb.style.display = "flex";
lb.focus() lb.focus()
const tabTxt2Img = gradioApp().getElementById("tab_txt2img") const tabTxt2Img = gradioApp().getElementById("tab_txt2img")
......
...@@ -436,9 +436,7 @@ input[type="range"]{ ...@@ -436,9 +436,7 @@ input[type="range"]{
#modalImage { #modalImage {
display: block; display: block;
margin-left: auto; margin: auto;
margin-right: auto;
margin-top: auto;
width: auto; width: auto;
} }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册