dokufreaks / plugin-discussion

Add a comments section to DokuWiki pages
https://www.dokuwiki.org/plugin:discussion
GNU General Public License v2.0
35 stars 26 forks source link

Redesign the show/hide button/feature #81

Open michitux opened 11 years ago

michitux commented 11 years ago

I see several problems with the show/hide button:

My suggestion for solving these issues is to completely remove the button and instead introduce something very similar to this arrow that is used for the table of contents and in the new dokuwiki template also for the sidebar in the tablet/mobile mode, i.e. the heading of the discussion section would be the trigger for showing/hiding the discussion section with an arrow (that might be a bit larger than the one in the new dokuwiki template) that indicates the functionality and a tooltip that describes it and is translated.

Klap-in commented 9 years ago

Use ful suggestion in #75 : add the number of comments to the closed header.

algorys commented 9 years ago

I've put on my wiki this plugins and i succeed to change that.

Just add in the files discussion/style.css this line

comment_wrapper { display:none; }

That's work for me, the discussion panel is closed by default. If you right click on your wiki page on the button discussion, and choose "inspect element", you can see a "div" with ID "comment_wrapper" That this one who change when you hide/show the plugin.

Hope it'll help you

berot3 commented 9 years ago

unfortunately discussions are easily overlooked this way... Is there maybe a way to only collapse the comment_wrapper if there are any comments?

Also the button should say "show/hide discussion" instead of just "show/hide". It maybe would also be nice to directly see how many comments there are directly on the button.

@algorys thanks, this worked for me.