-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat: Revamping Sidebar #1162
base: main
Are you sure you want to change the base?
feat: Revamping Sidebar #1162
Conversation
@JeevaRamanathan is attempting to deploy a commit to the mftsio Team on Vercel. A member of the Team first needs to authorize it. |
@JeevaRamanathan nice. I was hoping someone would add Shadcn sidebar :) |
@mfts I would like to get your input on this. |
Yes it would be great if the icons would still be visible when closed. |
@JeevaRamanathan let me know when you want me to start reviewing this PR or have questions :) |
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Hi @mfts, I have removed the commented lines of the previous sidebar along with few changes. I also noticed the visitor option was added, and I have included that as well and resolved the henceforth conflict.
Edit: 23.10.2024_02.51.14_REC.mp4 |
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Hi @mfts, Your thoughts on this please? |
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.
@JeevaRamanathan great progress.
I think the collapsible icon should be on the sidebar itself, not on the main div.
the icons and font of the items are one size too small
On mobile, the navbar should contain the collabsible buttons (which is does) and the user dropdown, which it used to but not longer.
Remove the P icon next to Papermark, because there's no space for the plan name
Hi @mfts, I have a question on one section
I felt placing the icon separately from the sidebar might provide more clarity, as the sidebar already contains the title, and combining them could make it feel cluttered. Here’s a similar approach used in ShadCN’s sidebar example, where the trigger is in the main div: Sidebar example and documentation.
Got it! I’ll check on this
I’m not sure I completely understood this part. Could you clarify? Are you suggesting that the user dropdown should be removed from the sidebar on mobile view, possibly moving it to the highlighted rounded area on the right side like now?
Understood! I’ll remove the icon when the sidebar is expanded, and I’ll keep it when it’s collapsed to avoid leaving an empty space. |
Signed-off-by: JeevaRamanathan <[email protected]>
Hi @mfts, Can you please review the changes
Could you please take a look and let me know if any changes are needed? Thanks! |
I agree. I think the https://ui.shadcn.com/blocks#sidebar-07 should be our role model
|
I'm awarding you now but I'd love for you to continue with this sidebar so we can get it merged :) /award 750 |
Awarding JeevaRamanathan: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/JeevaRamanathan |
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Signed-off-by: JeevaRamanathan <[email protected]>
Hi @mfts,
I have made these changes similar to sidebar-07.
We already have branding as a separate option within the settings screen. Should we move the branding section into the collapsible settings as well to reveal more options? |
papermark/components/Sidebar.tsx
Line 156 in c27f3f6
Hi @mfts,
Since ShadCN introduced the sidebar component two days ago, I thought of revamping the current sidebar using ShadCN's component. I would like to get your input on this.
Here’s a preview of how it looks:
Mobile View: