7631_testToMaster_2426 #480

Merged
alexm merged 390 commits from 7631_testToMaster_2426 into master 2024-06-25 06:40:05 +00:00
1 changed files with 6 additions and 7 deletions
Showing only changes of commit f55e9d7c32 - Show all commits

View File

@ -9,14 +9,13 @@ const rightPanel = ref(null);
onMounted(() => { onMounted(() => {
rightPanel.value = document.querySelector('#right-panel'); rightPanel.value = document.querySelector('#right-panel');
if (rightPanel.value.childNodes.length) hasContent.value = true; if (!rightPanel.value) return;
// Check if there's content to display // Check if there's content to display
const observer = new MutationObserver(() => { const observer = new MutationObserver(() => {
hasContent.value = rightPanel.value.childNodes.length; hasContent.value = rightPanel.value.childNodes.length;
}); });
if (rightPanel.value)
observer.observe(rightPanel.value, { observer.observe(rightPanel.value, {
subtree: true, subtree: true,
childList: true, childList: true,