fix resize-handle for vertical layout

This commit is contained in:
Andray 2024-02-23 18:34:24 +04:00
parent 18819723c1
commit bab918f049
1 changed files with 2 additions and 0 deletions

View File

@ -23,12 +23,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';
}