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

fix: Fixed the hiding behavior of sidebar with footer in Documentation.vue #909

Merged

Conversation

sahitya-chandra
Copy link
Contributor

@sahitya-chandra sahitya-chandra commented Feb 17, 2025

Description

  1. Fixed the hiding of the sidebar with the footer when we scroll to the end of the Documentation page.
  2. Removed the 'QDrawer' for better and controlled behavior of the Sidebar and made it hidden on the small screen.
  3. Structured CSS in proper order.

Related issue

fixed #908

How Has This Been Tested?

I have tested all the changes locally.

Screenshots (if appropriate):

Screencast.from.2025-02-17.15-21-42.webm
Screencast.from.2025-02-17.16-14-06.webm

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@sahitya-chandra
Copy link
Contributor Author

@dpgiakatos Sir please review this code...

@sahitya-chandra sahitya-chandra changed the title Fixed the overlaping and inconsistent behavior of sidebar with footer in Documentation.vue fix: Fixed the hiding behavior of sidebar with footer in Documentation.vue Feb 17, 2025
Copy link
Member

@dpgiakatos dpgiakatos left a comment

Choose a reason for hiding this comment

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

This PR deletes the QDrawer and re-implements it. However, the contributor should have used the existing QDrawer and fixed the issue instead of deleting and re-implementing it. We don't need to reinvent the wheel, as this approach will take too much time for maintenance. Thus, this PR needs a lot of changes and should continue to use Quasar components.

@sahitya-chandra
Copy link
Contributor Author

sahitya-chandra commented Feb 18, 2025

@dpgiakatos Sir Due to the implicit behavior of QDrawer it has infinite height because of this I have re-implemented the sidebar for static behavior.
Can I use any other Quasar component other than QDrawer if need be?
I think using QSplitter component will be great...

@dpgiakatos
Copy link
Member

Yes, you can use other quasar components.

@sahitya-chandra
Copy link
Contributor Author

@dpgiakatos Sir I have added the QSplitter component and organized the CSS in proper order. Removed multiple media-query.
Please review the code and let me know if there is any scope for correction.

Screencast.from.2025-02-18.11-15-30.webm

@sahitya-chandra
Copy link
Contributor Author

sahitya-chandra commented Feb 18, 2025

Also Sir, I have not deleted much code just organised it.

@dpgiakatos dpgiakatos self-requested a review February 18, 2025 07:29
Copy link
Member

@dpgiakatos dpgiakatos left a comment

Choose a reason for hiding this comment

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

Address my inline comment. Additionally, I would like the page to have the same behavior as the old version. Previously, when scrolling to a section, the contents would be visible on the right. In this version, you have to scroll to the top to see them. I would like to restore the same behavior as the old page, where the contents are visible on the right when scrolling to a section.

<div v-for="(sec, idx) in sections" :key="idx">
<div class="text-weight-light">
{{ $t(`documentationPage.sectionsTitle.${sec.sectionsTitle}`) }}
<QSplitter>
Copy link
Member

Choose a reason for hiding this comment

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

You haven't configured the component. You have to ad the v-model.
Also, add disable property.
Read the documentation:
https://quasar.dev/vue-components/splitter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dpgiakatos Sir as you mentioned above to achieve old version behavior.
I have removed the QSplitter component because it was causing problems with anchor navigation and
I have added QCard and QCardSection for proper navigation and better scrolling of Sidebar.

@sahitya-chandra
Copy link
Contributor Author

sahitya-chandra commented Feb 18, 2025

This the current behavior after last commit.

Screencast.from.2025-02-18.18-54-19.webm

@sahitya-chandra
Copy link
Contributor Author

Sir I have also removed multiple media queries to reduce redundancy in the code.

Copy link
Member

@dpgiakatos dpgiakatos left a comment

Choose a reason for hiding this comment

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

Thanks

@dpgiakatos dpgiakatos merged commit e42f01e into InternetHealthReport:master Feb 19, 2025
5 of 6 checks passed
@sahitya-chandra sahitya-chandra deleted the 908-sidebar-overlap-fix branch February 19, 2025 02:05
@sahitya-chandra
Copy link
Contributor Author

Thanks for approving my changes Sir...🚀

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.

Scrollbar Issue: Last Two Topics ('Daily Dumps' & 'Data Policy') Not Navigating Properly
2 participants