nicolasprigent / Dokuwiki-Kiwiki-Theme

Flex theme for Dokuwiki
https://www.dokuwiki.org/template:kiwiki
GNU General Public License v2.0
10 stars 3 forks source link

I want to add the MainMenu auto-hide function to make more room for toc. #26

Open ZhongXiYi opened 4 months ago

ZhongXiYi commented 4 months ago

I want to add the MainMenu auto-hide function to make more room for toc.

There are still a lot of suggestions that need to be revised, can I contact you by email?

ZhongXiYi commented 4 months ago

Or the MainMenu is displayed on the home page, and collapsed on other pages. Looking forward to your reply, thank you very much

nicolasprigent commented 4 months ago

hello @ZhongXiYi have you see the max height for both menus : it helps when you've got extensive amount of things in the menu or the toc. I think it should do the work, but if you've got a more specific use case, let me know.

image

ZhongXiYi commented 4 months ago

@nicolasprigent Dear developers, Superman (allow me to call you that, it's my adoration of you)! In my personal opinion, the setup you said might not be a very good idea.

Perhaps you can add an additional setting option, for example, if you are on the home page, you can display the MainMenu, because it is easier to navigate.

If you're visiting a different page, there's an option to hide it or make sure it's not shown. This will be a little more perfect in the display.

Do you approve of my idea? I don't mean to be offended, I just hope we can all do better!

ZhongXiYi commented 4 months ago

@nicolasprigent I'm using a translator now, so please forgive me if what I say is offensive.

nicolasprigent commented 4 months ago

Can you provide some screenshots of the problematic menu, and how it shows ? It seems like a specific use case but if it's something that could happen to other users I will fix it. The height fix solved previous user problem, it's not the most elegant thing but it should work.

ZhongXiYi commented 4 months ago

My setup is like this. 1 The image below is my homepage: 2 When opening any page, this MENU obviously takes up a lot of space and affects the view of TOC. 3 Wouldn't it be better if you could set this MainMenu to be displayed on the home page and not on other pages? Looking forward to your reply, thank you very much!