forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: improve UI scaling when sidebar width is reduced (#2678) #5917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
roomote
wants to merge
3
commits into
main
Choose a base branch
from
fix/ui-scaling-sidebar-width
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+213
−57
Conversation
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
- Adjust Settings View compact mode threshold from 500px to 600px for earlier activation - Improve text truncation in mode selector dropdowns with better Tailwind classes - Enhance chat text area API config dropdown responsiveness with min-w-0 classes - Add responsive CSS utilities for narrow containers and better text overflow handling Fixes #2678
- Add CSS rules to prevent checkbox squeezing with min-width and flex-shrink properties - Fix profile selection edit icon layout by wrapping buttons in flex-shrink-0 container - Add min-w-0 to flex containers to allow proper text truncation - Add responsive CSS adjustments for settings view in narrow containers - Ensure icon buttons maintain their size and don't get cut off
- Add CSS rules to prevent VSCode checkbox squeezing across all settings pages - Fix trash icon being cut off in profile selection by adjusting button spacing - Add min-width constraints to icon buttons to maintain visibility - Implement responsive CSS utilities for containers under 400px width - Add specific selectors for VSCode checkbox components to ensure proper sizing - Reduce gap between profile action buttons and add margin separation
@daniel-lxs I've addressed the issues you mentioned. Here's what I fixed: Checkbox Squeezing Issue
Profile Selection Icons Issue
Additional Improvements
The UI elements should now properly adapt to narrow sidebar widths without being squeezed or cut off. All tests are passing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
PR - Needs Preliminary Review
size:L
This PR changes 100-499 lines, ignoring generated files.
UI/UX
UI/UX related or focused
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.
Closes: #2678
This PR addresses UI scaling issues when the primary sidebar width is reduced by implementing several responsive improvements:
Key Changes:
Implementation Details:
Testing:
Manual testing performed across various sidebar widths (300px-600px range) to verify proper responsive behavior and text truncation in all affected UI components.
Important
This PR improves UI scaling for narrow sidebars by adjusting compact mode thresholds, enhancing text truncation, and adding responsive utilities across components and CSS.
SettingsView
compact mode threshold from 500px to 600px for earlier activation.ModesView
dropdowns with Tailwind CSS classes.ChatTextArea
API configuration dropdown responsiveness.index.css
.index.css
.ResizeObserver
for responsive design inSettingsView
.min-w-0
classes to prevent flex item overflow inChatTextArea
andApiConfigManager
.This description was created by
for 670cd67. You can customize this summary. It will automatically update as commits are pushed.