Fixed mayber #3
+1
-18
@@ -889,23 +889,6 @@ FRONTEND_JS_TEMPLATE = r"""
|
||||
}
|
||||
}, 0);
|
||||
|
||||
setTimeout(() => {
|
||||
const parent = box ? box.parentElement : null;
|
||||
if (parent) {
|
||||
// Check if any sibling answers are visible above us
|
||||
const siblings = Array.from(parent.children);
|
||||
const ourIndex = siblings.indexOf(box);
|
||||
const hasVisibleSiblingAbove = siblings.slice(0, ourIndex).some(
|
||||
el => el !== box && el.style.display !== 'none'
|
||||
);
|
||||
if (hasVisibleSiblingAbove) {
|
||||
box.style.borderTop = '1px solid var(--color-result-border, #444)';
|
||||
box.style.paddingTop = '1rem';
|
||||
box.style.marginTop = '0.75rem';
|
||||
}
|
||||
}
|
||||
}, 10);
|
||||
|
||||
let restored = false;
|
||||
let isStreaming = false;
|
||||
|
||||
@@ -2057,7 +2040,7 @@ class SXNGPlugin(Plugin):
|
||||
.replace("__JS_Q__", js_q)
|
||||
|
||||
html_payload = f'''
|
||||
<article id="sxng-stream-box" class="answer" style="display:none; margin-top: 0; margin-bottom: 0;">
|
||||
<article id="sxng-stream-box" class="answer" style="display:none; margin-top: 1rem; margin-bottom: 0; border-top: 1px solid var(--color-result-border, #4c566a); padding-top: 1rem;">
|
||||
<style>
|
||||
@keyframes sxng-fade-pulse {{
|
||||
0%, 100% {{ opacity: 0.1; }}
|
||||
|
||||
Reference in New Issue
Block a user