nomadjimbob / mikio

Customizable, Bootstrap 4 inspired template for Dokuwiki
GNU General Public License v2.0
23 stars 6 forks source link

Option to set sidebar as folded by default in narrow mode #10

Closed GJRobert closed 4 years ago

GJRobert commented 4 years ago

I prefer to fold/hide the sidebar in responsive narrow views when the page is first loaded, and let the user to unfold it if necessary.

Is it possible to set a toggle in the conf?

nomadjimbob commented 4 years ago

I'll add this feature for collapsable the left and right sidebars when in desktop mode in the next release.

GJRobert commented 4 years ago

I'll add this feature for collapsable the left and right sidebars when in desktop mode in the next release.

Hi, in case I might have expressed myself wrong,

Actually I just hope to collapse the sidebars in the mobile (narrow) mode by default (when the page is loaded)

Since presently, the sidebar (I am only using the left one, not yet tested the right one) is fully displayed in the mobile mode by default like this: 2020-09-17_13-54-04

I hope to let readers to see the page content more instantly when the page loads, so that we can save the click on the "Sidebar" toggle. :+1:

So I am okay with the present behavior of sidebars in the desktop (wide) mode (not collapsible but not my concern)

GJRobert commented 4 years ago

I just updated the title of this issue. Sorry for the under-expression. (not clarifying enough)

nomadjimbob commented 4 years ago

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

GJRobert commented 4 years ago

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

Oh that's great! Exactly what I need! Thanks for that tip!

nomadjimbob commented 4 years ago

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

Oh that's great! Exactly what I need! Thanks for that tip!

Cool. I believe that should be the default for the theme. I'll add it into the next release as the default with the reverse option in config to not hide the sidebar on mobile by default

nomadjimbob commented 4 years ago

Option added to release 2020-09-27