fix resize-handle for vertical layout

This commit is contained in:
Andray
2024-02-23 18:34:24 +04:00
committed by lllyasviel
parent 5166a723c2
commit cc1c0829d5

View File

@@ -22,12 +22,14 @@
function displayResizeHandle(parent) {
if (window.innerWidth < GRADIO_MIN_WIDTH * 2 + PAD * 4) {
parent.style.display = 'flex';
parent.querySelector('.resize-handle').style.display = "none";
if (R.handle != null) {
R.handle.style.opacity = '0';
}
return false;
} else {
parent.style.display = 'grid';
parent.querySelector('.resize-handle').style.display = 'block';
if (R.handle != null) {
R.handle.style.opacity = '100';
}