fix(ui): increase default right sidebar width for better terminal readability#1497
Open
Valley-15 wants to merge 1 commit intogeneralaction:mainfrom
Open
fix(ui): increase default right sidebar width for better terminal readability#1497Valley-15 wants to merge 1 commit intogeneralaction:mainfrom
Valley-15 wants to merge 1 commit intogeneralaction:mainfrom
Conversation
|
@Valley-15 is attempting to deploy a commit to the General Action Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Greptile SummaryIncreases the default right sidebar width from 20% to 25% (and adjusts left sidebar from 20% to 18%, center from 60% to 57%) to improve terminal readability for agent output, which previously suffered from excessive line wrapping.
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| src/renderer/constants/layout.ts | Single-line change adjusting default panel layout percentages from [20, 60, 20] to [18, 57, 25]. All values are within existing min/max constraints and sum to 100. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["App mounts"] --> B["usePanelLayout hook"]
B --> C{"localStorage has\nstored sizes?"}
C -->|Yes| D["Use stored sizes\n(no change)"]
C -->|No| E["Use DEFAULT_PANEL_LAYOUT\n[18, 57, 25]"]
D --> F["clampLeftSidebarSize\n(min 16, max 30)"]
E --> F
F --> G["clampRightSidebarSize\n(min 16, max 50)"]
G --> H["middle = 100 - left - right"]
H --> I["Render ResizablePanels\nwith defaultSize"]
Last reviewed commit: 3ae14f4
Contributor
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #1489
The terminal pane was difficult to use because the right sidebar default
width was only 20%, causing excessive line wrapping for agent output.
This change increases the default sidebar width to improve terminal
readability while keeping the main editor area usable.