Skip to content

feat: make chat content width configurable - #704

Open
uvforce wants to merge 1 commit into
agegr:mainfrom
uvforce:upstream/chat-content-width
Open

feat: make chat content width configurable#704
uvforce wants to merge 1 commit into
agegr:mainfrom
uvforce:upstream/chat-content-width

Conversation

@uvforce

@uvforce uvforce commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • add a chat content width control under Settings → General → Appearance
  • keep the existing 820px width as the default for backward compatibility
  • allow 820–2000px in 10px steps and persist the preference in localStorage
  • apply one shared CSS variable to existing messages, the empty-session composer, and the regular composer

Behavior

The setting uses a native range input and updates the layout immediately. Narrow windows still shrink below the configured maximum through the existing responsive containers, so the preference does not introduce horizontal page overflow.

The preference is intentionally independent of projects and sessions because it controls the global reading layout.

Testing

  • npm test — 847 passed
  • node_modules/.bin/tsc --noEmit
  • npm run lint
  • npm run build
  • browser QA:
    • fresh origin loads at 820px
    • changing the setting to 1100px updates and persists both message and composer widths
    • a 900px viewport shrinks content to the available space without horizontal overflow
    • console remained free of errors after reload

AI assistance

OpenAI Codex was used to investigate the existing settings patterns, implement the change, and run the verification above. The final diff was reviewed against the repository guidelines and Issue #681.

Closes #681

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T04:19:38.645074Z 8ed117a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: configurable chat content width (chat column is hardcoded to 820px)

1 participant