-
Notifications
You must be signed in to change notification settings - Fork 27.9k
fix(editor): Set deterministic width for sidebar #15753
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic reviewed 1 file and found no issues. Review PR in cubic.dev.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow Test Results 📊
|
Workflow ID | Workflow Name | Reason |
---|---|---|
237 | BasicLLMChain:AzureChat | Workflow contains new data that previously did not exist. |
35 | Slack:User:getPresence info:UserProfile:get update... | Workflow contains new data that previously did not exist. |
257 | Agent:auto-fix:anthropic | Workflow contains new data that previously did not exist. |
53 | ConvertKit:CustomField:create getAll update delete... | Workflow contains new data that previously did not exist. |
|
6 similar comments
|
|
|
|
|
|
Summary
The sidebar had two properties, min-width (200px) and max-width (244px). When the sidebar renders, it has the min-width of 200px.
Unless there are components in it that push for a wider width, it stays at 200px.
When there is the creatorCTA, it does not have a width set. Because of this, it pushes the sidebar wider and hence the components looks weird.
There are two ways we can fix it.
I decided to go with the second. In the first, the wide sidebar looked weird due to a lot of empty spaces.
This is how the fixed sidebar looks like
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/ADO-3591/bug-creators-banner-and-main-sidebar-spacing-issues
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)