refactor: unify layout widths and font sizes

- Add MAX_CONTENT_WIDTH (820px) constant for consistent chat/form widths
- Bump theme font sizes (base now 16px) for better readability
- Apply max width to stream view, input area, and new agent form
- Position new agent form at bottom of scroll area
- Remove working directory helper text
- Add cmd+b sidebar toggle when textarea is focused
This commit is contained in:
Mohamed Boudra
2026-01-09 19:11:35 +07:00
parent 2d03e86bcb
commit 584b0413a5
8 changed files with 33 additions and 23 deletions
@@ -43,8 +43,7 @@ import {
} from "@/utils/tool-call-parsers";
import { ToolCallSheetProvider } from "./tool-call-sheet";
import { createMarkdownStyles } from "@/styles/markdown-styles";
const MAX_CHAT_WIDTH = 960;
import { MAX_CONTENT_WIDTH } from "@/constants/layout";
type PermissionResolvedMessage = Extract<
SessionOutboundMessage,
{ type: "agent_permission_resolved" }
@@ -1024,7 +1023,7 @@ const stylesheet = StyleSheet.create((theme) => ({
},
contentWrapper: {
width: "100%",
maxWidth: MAX_CHAT_WIDTH,
maxWidth: MAX_CONTENT_WIDTH,
alignSelf: "center",
},
list: {
@@ -1033,7 +1032,7 @@ const stylesheet = StyleSheet.create((theme) => ({
},
streamItemWrapper: {
width: "100%",
maxWidth: MAX_CHAT_WIDTH,
maxWidth: MAX_CONTENT_WIDTH,
alignSelf: "center",
},
emptyState: {
@@ -1096,7 +1095,7 @@ const stylesheet = StyleSheet.create((theme) => ({
},
scrollToBottomInner: {
width: "100%",
maxWidth: MAX_CHAT_WIDTH,
maxWidth: MAX_CONTENT_WIDTH,
alignSelf: "center",
alignItems: "center",
},