mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-23 00:18:20 +01:00
CSS fix
This commit is contained in:
parent
87b84d2275
commit
3047ed8ce3
@ -11,8 +11,8 @@ let extensions = document.getElementById('extensions');
|
|||||||
main_parent.addEventListener('click', function(e) {
|
main_parent.addEventListener('click', function(e) {
|
||||||
// Check if the main element is visible
|
// Check if the main element is visible
|
||||||
if (main.offsetHeight > 0 && main.offsetWidth > 0) {
|
if (main.offsetHeight > 0 && main.offsetWidth > 0) {
|
||||||
extensions.style.visibility = 'visible';
|
extensions.style.display = 'block';
|
||||||
} else {
|
} else {
|
||||||
extensions.style.visibility = 'hidden';
|
extensions.style.display = 'none';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user