diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx
index 46b66f3f5d7..5cf3192ce86 100644
--- a/gui/src/components/Layout.tsx
+++ b/gui/src/components/Layout.tsx
@@ -201,7 +201,7 @@ const 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(/
/);
+ expect(source).toMatch(/
/);
+ });
+});
diff --git a/gui/src/pages/gui/index.tsx b/gui/src/pages/gui/index.tsx
index d74b32c59c7..e572d440d95 100644
--- a/gui/src/pages/gui/index.tsx
+++ b/gui/src/pages/gui/index.tsx
@@ -3,11 +3,11 @@ import { Chat } from "./Chat";
export default function GUI() {
return (
-