Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 20 additions & 40 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 2 additions & 48 deletions extensions/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gui/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const Layout = () => {
<OSRContextMenu />
<div
style={{
scrollbarGutter: "stable both-edges",
scrollbarGutter: "stable",
minHeight: "100%",
display: "grid",
gridTemplateRows: "1fr auto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const StyledPre = styled.pre<{ theme: any }>`
margin-bottom: 0;
border-radius: 0 0 ${defaultBorderRadius} ${defaultBorderRadius} !important;
max-height: 40vh;
max-width: 100%;
min-width: 0;
overflow-y: scroll !important;

${(props) => generateThemeStyles(props.theme)}
Expand Down
6 changes: 5 additions & 1 deletion gui/src/components/StyledMarkdownPreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ const StyledMarkdown = styled.div<{
background-color: ${vscEditorBackground};
border-radius: ${defaultBorderRadius};

max-width: calc(100vw - 24px);
box-sizing: border-box;
max-width: 100%;
min-width: 0;
overflow-x: scroll;
overflow-y: hidden;

Expand All @@ -77,6 +79,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};
Expand Down
4 changes: 2 additions & 2 deletions gui/src/components/mainInput/ContinueInputBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ function ContinueInputBox(props: ContinueInputBoxProps) {

return (
<div
className={`${props.hidden ? "hidden" : ""}`}
className={`${props.hidden ? "hidden" : ""} min-w-0`}
data-testid={`continue-input-box-${props.inputId}`}
>
<div className={`relative flex flex-col px-2`}>
<div className={`relative flex min-w-0 flex-col px-2`}>
{props.isMainInput && <Lump />}
<GradientBorder
loading={isStreaming && (props.isLastUserInput || isInEdit) ? 1 : 0}
Expand Down
6 changes: 3 additions & 3 deletions gui/src/components/mainInput/InputToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ function InputToolbar(props: InputToolbarProps) {
<>
<div
onClick={props.onClick}
className={`find-widget-skip bg-vsc-input-background flex select-none flex-row items-center justify-between gap-1 pt-1 ${props.hidden ? "pointer-events-none h-0 cursor-default opacity-0" : "pointer-events-auto mt-2 cursor-text opacity-100"}`}
className={`find-widget-skip bg-vsc-input-background flex min-w-0 select-none flex-row items-center justify-between gap-1 pt-1 ${props.hidden ? "pointer-events-none h-0 cursor-default opacity-0" : "pointer-events-auto mt-2 cursor-text opacity-100"}`}
style={{
fontSize: smallFont,
}}
>
<div className="xs:gap-1.5 flex flex-row items-center gap-1">
<div className="xs:gap-1.5 flex min-w-0 flex-row items-center gap-1 overflow-hidden">
{!isInEdit && (
<ToolTip place="top" content="Select Mode">
<HoverItem className="!p-0">
Expand Down Expand Up @@ -169,7 +169,7 @@ function InputToolbar(props: InputToolbarProps) {
</div>

<div
className="text-description flex items-center gap-2 whitespace-nowrap"
className="text-description flex flex-shrink-0 items-center gap-2 whitespace-nowrap"
style={{
fontSize: tinyFont,
}}
Expand Down
8 changes: 8 additions & 0 deletions gui/src/components/mainInput/TipTapEditor/TipTapEditor.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/* Prevent long unbroken text from overflowing the input box */
.tiptap,
.ProseMirror {
word-break: break-word;
overflow-wrap: anywhere;
overflow-x: hidden;
}

.mention {
background-color: var(--vscode-badge-background, #bfe2b6);
color: var(--vscode-badge-foreground, --vscode-foreground, #000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const InputBoxDiv = styled.div<{}>`

display: flex;
flex-direction: column;
overflow-x: hidden;
`;

export const HoverDiv = styled.div`
Expand Down
Loading
Loading