Repository navigation
fix(ui): truncate organization name properly in sidebar without clipp… - #5287
Merged
Merged
Conversation
imrja8
marked this pull request as draft
September 3, 2026 04:20
imrja8
marked this pull request as ready for review
September 3, 2026 04:20
narcisonunez
approved these changes
Sep 3, 2026
Collaborator
|
You can send a PR showing the full name on hover. That will allow people to identify the org if they have multiple with the same prefix or something like that. |
Collaborator
Author
PR coming soon. |
3 tasks done
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.
What is this PR about?
This PR fixes a UI layout bug in the sidebar's organization selector (
side.tsx). Previously, long organization names would awkwardly wrap to multiple lines and break the sidebar layout instead of truncating properly with an ellipsis.To fix this, proper Flexbox constraints (
min-w-0andflex-1) were added to the parent containers alongside thetruncateutility to allow the organization name to gracefully truncate into a single line when the sidebar width is constrained.Checklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
closes #5286
Screenshots (if applicable)
Before
Enterprise users POV

Normal users POV

After
Enterprise users POV

Normal users POV

Open Questions for Maintainers
The "Enterprise" tag is currently occupying space within the organization selector, resulting in a shorter available space for the organization name itself for Enterprise users.
Since the Enterprise license applies to the entire Dokploy instance globally (and not at the individual organization level), would it be better to move this tag globally to the top right side (next to the timer)? This would free up much-needed horizontal space in the sidebar for the organization name.
Greptile Summary
This PR corrects organization-selector truncation in the sidebar by making its nested flex containers shrinkable while preserving the logo, Enterprise badge, and chevron dimensions.
min-w-0andflex-1constraints through the organization-name container hierarchy.Confidence Score: 5/5
The PR appears safe to merge because the layout-only changes consistently constrain shrinkable content while preserving fixed-size controls.
The updated flex hierarchy permits long organization names to shrink and truncate, while collapsed-state visibility rules prevent the hidden name, badge, and chevron from causing overflow.
Reviews (2): Last reviewed commit: "[autofix.ci] apply automated fixes" | Re-trigger Greptile