mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
refac
This commit is contained in:
@@ -27,12 +27,15 @@
|
||||
// Adjust based on parent rect
|
||||
const top = rect.bottom - parentRect.top;
|
||||
const left = rect.left - parentRect.left;
|
||||
|
||||
buttonsContainerElement.style.display = 'block';
|
||||
buttonsContainerElement.style.left = `${left}px`;
|
||||
buttonsContainerElement.style.top = `${top + 5}px`; // +5 to add some spacing
|
||||
if (buttonsContainerElement) {
|
||||
buttonsContainerElement.style.display = 'block';
|
||||
buttonsContainerElement.style.left = `${left}px`;
|
||||
buttonsContainerElement.style.top = `${top + 5}px`; // +5 to add some spacing
|
||||
}
|
||||
} else {
|
||||
buttonsContainerElement.style.display = 'none';
|
||||
if (buttonsContainerElement) {
|
||||
buttonsContainerElement.style.display = 'none';
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user