[Feature]: allow right panel drag beyond 1200px to dynamic max
- Ngôn ngữ chính
- Rust
- Star
- 2.3k
- Fork
- 231
- Merge trung bình
- 2 giờ 49 phút
- Pull request đã merge (30 ngày)
- 589
Mô tả
### Problem / opportunity
The right panel resizer is hard-capped at RIGHT_PANEL_CONFIG.MAX_WIDTH (1200px). On wide
windows (>=1604px container), dragging the right panel to widen it is clamped back to 1200px,
leaving the chat pane unable to use the available width. The user cannot widen the right panel
past one page even when there is room on screen.
### Proposed behavior
Allow the right panel to be dragged beyond 1200px up to a dynamic upper bound
(container - resizer - MIN_CENTER_WIDTH) while always reserving a 400px minimum chat column.
On wide windows the right panel can be widened past 1200px toward the available width; on
regular containers the dynamic upper bound still applies.
### Product surface
Web UI
### Details, examples, or constraints
- calculateValidRightWidth uses the pure dynamic max as the upper bound, dropping the
Math.min(RIGHT_PANEL_CONFIG.MAX_WIDTH, dynamicMax) hard cap.
- Remove the SessionScene aux-pane CSS max-width:1200px cap and de-cap updateRightPanelWidth
(clamp only to the compact minimum) so a wide manual drag is not pulled back to 1200px.
- Clamp visibilitychange and panel-expand restore paths to the dynamic max so a shrunken window
cannot transiently squash the chat pane below its one-page minimum.
- A 400px minimum chat column is preserved; default open/restore paths still cap at MAX_WIDTH.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định calculateValidRightWidth, RIGHT_PANEL_CONFIG, SessionScene và updateRightPanelWidth. Theo dõi các đường đi của drag, visibilitychange, panel-expand và khôi phục mặc định, sau đó xác minh trên các cửa sổ rộng và bị thu nhỏ rằng việc thay đổi kích thước thủ công có thể vượt quá 1200px, trong khi cột chat vẫn giữ ít nhất 400px và các lần khôi phục mặc định vẫn bị giới hạn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- css
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 70/100