mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 11:42:34 +00:00
fix resize-handle for vertical layout
This commit is contained in:
@@ -23,12 +23,14 @@
|
|||||||
function displayResizeHandle(parent) {
|
function displayResizeHandle(parent) {
|
||||||
if (window.innerWidth < GRADIO_MIN_WIDTH * 2 + PAD * 4) {
|
if (window.innerWidth < GRADIO_MIN_WIDTH * 2 + PAD * 4) {
|
||||||
parent.style.display = 'flex';
|
parent.style.display = 'flex';
|
||||||
|
parent.querySelector('.resize-handle').style.display = "none";
|
||||||
if (R.handle != null) {
|
if (R.handle != null) {
|
||||||
R.handle.style.opacity = '0';
|
R.handle.style.opacity = '0';
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
parent.style.display = 'grid';
|
parent.style.display = 'grid';
|
||||||
|
parent.querySelector('.resize-handle').style.display = 'block';
|
||||||
if (R.handle != null) {
|
if (R.handle != null) {
|
||||||
R.handle.style.opacity = '100';
|
R.handle.style.opacity = '100';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user