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

Clicking space between arrow and text leads to collapsing higher-level menu #45

Open
agats1301 opened this issue Jan 9, 2024 · 2 comments

Comments

@agats1301
Copy link

Steps to reproduce

  1. Open the second level menu (in our case it's 'Devops')
  2. Click space between arrow and 'Devops'
  3. Observe that 'Documentation' menu is collapsed

Expected behaviour: Only current level menu (in our case it's 'Devops' menu) should be collapsed.

example

@PenNameLuXun
Copy link

you can use css to avoid :

Add li.folder{padding-left: 4px;} to the end of the vue.css file.

in file sidebar.min.css,find .sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before ,adjust the attri left to -7px:

.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before{content:'';display:block;position:absolute;top:11px;left:-7px;height:6px;width:6px;border-right:1px solid #505d6b;border-bottom:1px solid #505d6b;transform:rotate(-45deg);transition:transform .1s}

@agats1301
Copy link
Author

agats1301 commented Apr 9, 2024

I've tried the solution above and it works, however, I've noticed that clicking at the top and left of the arrow leads to the higher-level menu collapsing as well:
docsify_menu

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

No branches or pull requests

2 participants