Skip to content

feat(web): make chat content area responsive to screen width on wide displays #493

@hqhq1025

Description

@hqhq1025

Problem

On wide screens (e.g., external monitors, ultrawide displays), the chat content area is constrained to a fixed narrow column (~720px max-w-content), leaving large amounts of unused whitespace on both sides. This wastes screen space and doesn't look great.

Current Behavior

  • The left sidebar takes ~200px
  • The chat content area is capped at ~720px width regardless of screen size
  • On a 1440p+ display, more than half the right side is empty whitespace

Expected Behavior

The chat content area should scale responsively with the available viewport width:

  • On normal screens (< ~1200px): current behavior is fine
  • On wide screens (> ~1200px): the content area should expand to use more horizontal space
  • Consider a wider max-width breakpoint (e.g., max-w-4xl or max-w-5xl at xl: / 2xl: breakpoints)
  • Or use a percentage-based max-width (e.g., max-w-[85%]) so it always fills most of the available space

Screenshots

Wide screen showing narrow content column

The chat content area only uses a small portion of the available space on the right side.

Possible Implementation

The max-w-content (720px) is likely defined in web/tailwind.config.ts and used in components like HappyComposer.tsx and the thread/message area. A responsive approach could:

  • Increase max-w-content at larger breakpoints
  • Or use xl:max-w-4xl 2xl:max-w-5xl overrides on the content container

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions