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
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
2 changes: 1 addition & 1 deletion gui/src/components/StyledMarkdownPreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const StyledMarkdown = styled.div<{
background-color: ${vscEditorBackground};
border-radius: ${defaultBorderRadius};
max-width: calc(100vw - 24px);
max-width: 100%;
overflow-x: scroll;
overflow-y: hidden;
Expand Down
13 changes: 13 additions & 0 deletions gui/src/pages/gui/index.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { readFileSync } from "fs";
import { describe, expect, it } from "vitest";

describe("GUI sidebar shell layout", () => {
it("uses panel-relative width and allows flex children to shrink", () => {
const source = readFileSync("src/pages/gui/index.tsx", "utf8");

expect(source).toMatch(/className="[^"]*\bw-full\b[^"]*"/);
expect(source).not.toMatch(/className="[^"]*\bw-screen\b[^"]*"/);
expect(source).toMatch(/<div className="[^"]*\bmin-w-0\b[^"]*">/);
expect(source).toMatch(/<main className="[^"]*\bmin-w-0\b[^"]*">/);
});
});
4 changes: 2 additions & 2 deletions gui/src/pages/gui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Chat } from "./Chat";

export default function GUI() {
return (
<div className="flex min-h-0 w-screen flex-row overflow-x-hidden">
<div className="flex min-h-0 w-full min-w-0 flex-row overflow-x-hidden">
<aside className="4xl:flex border-vsc-input-border no-scrollbar hidden min-h-0 w-96 overflow-y-auto border-0 border-r border-solid">
<History />
</aside>
<main className="no-scrollbar flex min-h-0 flex-1 flex-col">
<main className="no-scrollbar flex min-h-0 min-w-0 flex-1 flex-col">
<Chat />
</main>
</div>
Expand Down
Loading