Skip to content
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

collapsible feature added #623

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

rajprakash00
Copy link

@rajprakash00 rajprakash00 commented Sep 11, 2020

Fixed #622

Added collapsible features for pages

Screenshot:

codeuino

Demo: https://deploy-preview-623--friendly-sinoussi-3b191b.netlify.app

@rajprakash00
Copy link
Author

@Rupeshiya @AuraOfDivinity please review

Copy link
Collaborator

@AuraOfDivinity AuraOfDivinity left a comment

Choose a reason for hiding this comment

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

@rajprakash00 Thanks for the PR! This looks good. Just a couple of concerns from my end but I think we can get them sorted out.

  1. Could you remove the unnecessary code formatting related changes from the code? It's harder to identify the code changes. A small tip: disable the format on save option if you're using vs code.

  2. The sidebar is not responsive and breaks at smaller screen sizes. As of the current implementation, the sidebar turns into a small strip when viewed on smaller screens. Can you implement the same functionality for your changes as well?

  3. I personally think we could use some design improvements as well. Maybe @jaskiratsingh2000 @Rupeshiya and Siddharth could provide some feedback on this?

src/user/dashboard/Community/community.scss Outdated Show resolved Hide resolved
Comment on lines +44 to +52
<button
onClick={this.handleViewSidebar}
className="sidebar-toggle"
style={
sideBarClass === "sidebar-open"
? { marginLeft: "13vw" }
: { marginLeft: 0 }
}
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't it possible to integrate this button itself to the sidebar itself without repeating it in all the files?

Copy link
Author

Choose a reason for hiding this comment

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

Ya, i tried implementing it with navigation.js file but for some reason(i am guessing related to fixed position property) the sidebar collapses but the main content doesn't resizes(failing the sole purpose of collapse feature).

Copy link
Author

Choose a reason for hiding this comment

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

@AuraOfDivinity for your 2nd point I removed the collapsible feature for small sizes(since it was unnecessary in small screens).
Also i was thinking can we not create navigation as a uniform component in layout folder?

@AuraOfDivinity
Copy link
Collaborator

@rajprakash00 any updates on this PR?

@rajprakash00
Copy link
Author

@AuraOfDivinity I think I've done some of your requested changes in the updated commit,is there any more changes required?

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.

None yet

2 participants