Fixed mayber
This commit is contained in:
+11
-3
@@ -686,7 +686,6 @@ INTERACTIVE_JS = r'''
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
box.style.display = 'block';
|
box.style.display = 'block';
|
||||||
if(wrapper) wrapper.style.display = '';
|
|
||||||
if(footer && is_interactive) footer.style.display = 'flex';
|
if(footer && is_interactive) footer.style.display = 'flex';
|
||||||
restored = true;
|
restored = true;
|
||||||
}
|
}
|
||||||
@@ -879,7 +878,17 @@ FRONTEND_JS_TEMPLATE = r"""
|
|||||||
const box = document.getElementById('sxng-stream-box');
|
const box = document.getElementById('sxng-stream-box');
|
||||||
const data = document.getElementById('sxng-stream-data');
|
const data = document.getElementById('sxng-stream-data');
|
||||||
const wrapper = box.closest('.answer');
|
const wrapper = box.closest('.answer');
|
||||||
if (wrapper) wrapper.style.display = 'none';
|
|
||||||
|
// Hide native SearXNG answer entries but not our AI Overview
|
||||||
|
const answersContainer = document.getElementById('answers');
|
||||||
|
if (answersContainer) {
|
||||||
|
Array.from(answersContainer.querySelectorAll('.answer')).forEach(el => {
|
||||||
|
if (!el.contains(box)) {
|
||||||
|
el.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let restored = false;
|
let restored = false;
|
||||||
let isStreaming = false;
|
let isStreaming = false;
|
||||||
|
|
||||||
@@ -941,7 +950,6 @@ FRONTEND_JS_TEMPLATE = r"""
|
|||||||
isStreaming = true;
|
isStreaming = true;
|
||||||
try {
|
try {
|
||||||
const ctx = auxContext || conversation.originalContext;
|
const ctx = auxContext || conversation.originalContext;
|
||||||
if (wrapper) wrapper.style.display = '';
|
|
||||||
box.style.display = 'block';
|
box.style.display = 'block';
|
||||||
|
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
|
|||||||
Reference in New Issue
Block a user