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

Collapse subpages #65

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Collapse subpages #65

merged 1 commit into from
Nov 13, 2024

Conversation

benoit74
Copy link
Contributor

@benoit74 benoit74 commented Nov 11, 2024

Fix #57

Changes:

  • add a JS service to collapse entries just like online

Remark: this is obviously a bit fragile since it uses online CSS classes to properly detect when we should (or shouldn't add the magic button and hide entries in excess).

It is deemed to be the best compromise so far. I tried to reuse JS / CSS from online but it is just a mess to make it work.

Screen.Recording.2024-11-11.at.11.46.10.mov

@benoit74 benoit74 self-assigned this Nov 11, 2024
@benoit74 benoit74 changed the base branch from main to cleanup November 11, 2024 10:42
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.08%. Comparing base (147f27c) to head (6ddba30).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #65   +/-   ##
=======================================
  Coverage   45.08%   45.08%           
=======================================
  Files          13       13           
  Lines         845      845           
  Branches      111      111           
=======================================
  Hits          381      381           
  Misses        451      451           
  Partials       13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benoit74 benoit74 marked this pull request as ready for review November 11, 2024 10:48
Base automatically changed from cleanup to main November 11, 2024 10:56
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

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

LGTM

@benoit74 benoit74 merged commit f0e6cfe into main Nov 13, 2024
10 checks passed
@benoit74 benoit74 deleted the collapse_subpages branch November 13, 2024 08:22
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.

Collapse book chapters on parent page
2 participants