From 9e87bc4453ebfe7059a913828fe96c55fa467507 Mon Sep 17 00:00:00 2001 From: Jeffrey Long Date: Thu, 9 Apr 2026 11:35:04 -0700 Subject: [PATCH] Fix UI issue --- app.py | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) 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)