Skip to content

[UI] Add a setting for Sidebar position #523

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

Closed
wants to merge 1 commit into from

Conversation

senwang86
Copy link
Collaborator

Summary

We used to talk about giving users an option to put the Sidebar on the left or right side, feel like it's ready to provide this option after PR #521

  • Add a setting for the Sidebar position
  • Correctly adjust the UI style properly based on the Sidebar position

Test

sidebar_position

@senwang86 senwang86 requested a review from lihebi September 8, 2023 22:37
@@ -287,6 +304,7 @@ function RepoWrapper({ children, id }) {
flexGrow: 1,
verticalAlign: "top",
height: "100%",
...(isSidebarOnLeftHand && { ml: open ? sidebar_width : 0 }),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any better way to adjust the Canvas position?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the best way I know.

@lihebi
Copy link
Collaborator

lihebi commented Sep 9, 2023

This PR is cool. I was not able to make the left work in #521 due to flex displaying issues. Your approach looks nice.

@lihebi
Copy link
Collaborator

lihebi commented Sep 9, 2023

Resolved conflicts in #527 and merged. Closing. Thanks!

@lihebi lihebi closed this Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants