diff --git a/app.py b/app.py index 31f5110..88821b5 100644 --- a/app.py +++ b/app.py @@ -96,29 +96,30 @@ class StreamlitOutputBuffer(io.TextIOBase): visible_lines.append(self.current_line) visible_lines = visible_lines[-self.max_lines :] content = html.escape("\n".join(visible_lines)) - self.placeholder.caption("Scan Details") - components.html( - f""" -
{content}
- - """, - height=self.height + 16, - ) + with self.placeholder.container(): + st.caption("Scan Details") + components.html( + f""" +
{content}
+ + """, + height=self.height + 16, + ) def getvalue(self) -> str: visible_lines = list(self.lines)