diff --git a/gui/src/components/StepContainer/StepContainer.tsx b/gui/src/components/StepContainer/StepContainer.tsx index fc6981d0558..e5a587d6030 100644 --- a/gui/src/components/StepContainer/StepContainer.tsx +++ b/gui/src/components/StepContainer/StepContainer.tsx @@ -75,9 +75,9 @@ export default function StepContainer(props: StepContainerProps) { } return ( -
diff --git a/gui/src/components/StyledMarkdownPreview/index.tsx b/gui/src/components/StyledMarkdownPreview/index.tsx
index 2ff217a6147..3018da909b7 100644
--- a/gui/src/components/StyledMarkdownPreview/index.tsx
+++ b/gui/src/components/StyledMarkdownPreview/index.tsx
@@ -37,6 +37,8 @@ const StyledMarkdown = styled.div<{
whiteSpace: string;
bgColor: string;
}>`
+ min-width: 0;
+ max-width: 100%;
h1 {
font-size: 1.25em;
}
@@ -66,7 +68,9 @@ const StyledMarkdown = styled.div<{
background-color: ${vscEditorBackground};
border-radius: ${defaultBorderRadius};
- max-width: calc(100vw - 24px);
+ box-sizing: border-box;
+ min-width: 0;
+ max-width: 100%;
overflow-x: scroll;
overflow-y: hidden;
@@ -77,6 +81,8 @@ const StyledMarkdown = styled.div<{
span.line:empty {
display: none;
}
+ overflow-wrap: anywhere;
+ word-break: break-word;
word-wrap: break-word;
border-radius: 0.3125rem;
background-color: ${vscEditorBackground};
diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx
index 00e04efd1f4..285c71361ae 100644
--- a/gui/src/pages/gui/Chat.tsx
+++ b/gui/src/pages/gui/Chat.tsx
@@ -355,7 +355,7 @@ export function Chat() {
// Default case - regular assistant message
return (
-
+
}
@@ -386,7 +386,7 @@ export function Chat() {
0 ? "min-h-0 flex-1 overflow-y-scroll" : "shrink-0"}`}
+ className={`min-w-0 pt-[8px] ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${history.length > 0 ? "min-h-0 flex-1 overflow-x-hidden overflow-y-scroll" : "shrink-0"}`}
>
{highlights}
diff --git a/gui/src/pages/gui/index.tsx b/gui/src/pages/gui/index.tsx
index d74b32c59c7..4ddcc0bca26 100644
--- a/gui/src/pages/gui/index.tsx
+++ b/gui/src/pages/gui/index.tsx
@@ -7,7 +7,7 @@ export default function GUI() {
-
+