Skip to content

fix: improve Ask view layout adjustment for narrow/split windows#1107

Draft
msukkari wants to merge 4 commits intomainfrom
cursor/fix-ask-view-split-layout-8f63
Draft

fix: improve Ask view layout adjustment for narrow/split windows#1107
msukkari wants to merge 4 commits intomainfrom
cursor/fix-ask-view-split-layout-8f63

Conversation

@msukkari
Copy link
Copy Markdown
Contributor

@msukkari msukkari commented Apr 10, 2026

Summary

This PR fixes the Ask view layout issues when the window is in split view mode (e.g., half screen). Previously, the horizontal split layout with code citations would become cramped and hard to use in narrow windows because the minimum panel sizes were too large (30%).

Changes

  • Reduced minSize for both answer and code references panels from 30% to 20%
  • Increased maxSize for both panels from 70% to 80%
  • This allows better resizing flexibility in narrow containers without breaking the layout

The fix is minimal and focused: it simply allows the resizable panels to shrink more, which prevents the layout from becoming unusable in split window mode.

How to test

  1. Navigate to the Ask/Chat page with an existing conversation that has code references
  2. Resize the browser window to be narrow (split window mode)
  3. Verify the panels can resize properly and the layout remains usable
  4. Drag the resize handle to adjust the split between answer and code references

Fixes SOU-845

Linear Issue: SOU-845

Open in Web Open in Cursor 

- Add container-width detection using ResizeObserver to detect narrow containers
- Automatically switch to vertical layout when container width < 768px
- Add toggle button to collapse/expand code references panel
- Support both horizontal (wide) and vertical (narrow) layouts
- In vertical layout, code references appear below the answer with a collapsible section
- In horizontal layout, add ability to collapse the right panel for full-width answer view

Fixes issue where code citations become impossible to see in split window mode

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 34205540-bf1d-4b25-bfea-d350ff8a68ec

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/fix-ask-view-split-layout-8f63

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

cursoragent and others added 3 commits April 10, 2026 19:11
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Remove vertical layout system and toggle button. Instead, simply reduce
the minSize from 30% to 20% for both panels, allowing each to shrink
more in narrow/split windows without breaking the layout.

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
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.

2 participants