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

Feature: Button that allows the user to switch the side where the sidebar is displayed #340

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

Conversation

ghRodrigo
Copy link
Contributor

@ghRodrigo ghRodrigo commented Nov 14, 2024

Closes #203

Added a button besides the DarkModeSwitch button that changes the side of the sidebar from the right to the left and vice-versa.

@ghRodrigo ghRodrigo self-assigned this Nov 14, 2024
Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for tts-fe-preview ready!

Name Link
🔨 Latest commit 06c4b45
🔍 Latest deploy log https://app.netlify.com/sites/tts-fe-preview/deploys/67363b20d2697e0008ae8868
😎 Deploy Preview https://deploy-preview-340--tts-fe-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +88 to +94
<button
onClick={toggleSidebarPosition}
className="hidden md:inline-flex items-center justify-center w-8 h-8 bg-primary text-white rounded hover:text-opacity-75"
>
<ArrowsRightLeftIcon className='h-4 w-4' />
</button>

Copy link
Member

Choose a reason for hiding this comment

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

I don't think the button to switch sides should be here on the navbar because not all pages have the sidebar and it looks weird for the about page and the FAQ page to have such button.

Can you move it to some place inside the sidebar? For example, near the download button or on the bottom of the sidebar.

</SentryRoutes>
</CombinedProvider>
</BrowserRouter>
<SidebarProvider>
Copy link
Member

@tomaspalma tomaspalma Nov 14, 2024

Choose a reason for hiding this comment

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

In the same light as the previous comment, since the sidebar button to change sides should not be global, it does not really make sense to render the SidebarProvider here.

It should be inside the TimeTableScheduler.tsx page

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.

Add button to change sidebar side
2 participants