Commit bab918f0 authored by Andray's avatar Andray

fix resize-handle for vertical layout

parent 18819723
......@@ -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';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment