Debian / debiman

debiman generates a static manpage HTML repository out of a Debian archive
Apache License 2.0
195 stars 46 forks source link

Table of Contents is collapsed with no hint that it could be expanded #137

Open thkoch2001 opened 2 years ago

thkoch2001 commented 2 years ago

I did eventually click on it but there might be enough users who will not find out that they can expand the table of contents.

I actually looked first at the top of the main area for a table of contents, much like in Wikipedia.

BTW: Should https://github.com/Debian/debiman/issues/72 be closed?

stapelberg commented 2 years ago

This is because of display: block on the summary and details elements: https://github.com/Debian/debiman/blob/38831b8b322b5818446765c3b7bd335b4974f425/assets/style.css#L251-L253

This line has been there since the initial commit, and I’m not sure why it was added.

When you change it to display: list-item, a drop-down arrow appears (at least in Chrome, not sure about Firefox).

I’m not sure if we can just change it, or if that will break anything else.


Issue #72 is related, but not obsolete. The list of languages is still not collapsed, but always displayed in full.