-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
- 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. |
|
@roomote-agent check my latest review and address the suggestions, commit the changes to this PR, do not create a new one |
|
Hi @daniel-lxs, I see your review comments. I will address the following issues:
Working on these changes now. |
- Removed duplicate .dropdown-container class definition in index.css (line 577) - Replaced RTL direction hack with proper text-align approach in ModesView.tsx for better accessibility
|
Hi @daniel-lxs, I have successfully addressed both review suggestions: ✅ Fixed duplicate The changes have been committed to this PR branch (commit bb941c1) and all CI checks are passing. The code is ready for your review! |
|
Closing since the CSS seems complicated and I can't notice any noticeable improvements, feel free to reopen if someome wants to work on this a bit more. |
|
Hi @daniel-lxs, I would like to improve on this a bit more (in a separate PR, of course), the dropdown has annoyed me too for a while. |


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
Improves UI scaling for narrow sidebars by adjusting compact mode threshold, enhancing text truncation, and adding responsive CSS utilities.
SettingsView.tsxfrom 500px to 600px for earlier activation.ModesView.tsxandApiConfigManager.tsxusing Tailwind CSS classes liketruncate,min-w-0, andmax-w-[40%].ChatTextArea.tsxdropdown responsiveness withmin-w-0class.index.cssfor narrow containers, text overflow handling, and container queries.This description was created by
for bb941c1. You can customize this summary. It will automatically update as commits are pushed.