[pmwiki-users] TOC no scrolling please

Martin Cuno martin.cuno at posteo.de
Mon Jan 19 03:46:07 PST 2026


Thanks, Petko! Perfect as always, and so fast!

Just so you know, though: it's not working on the Changelog page. It makes no difference whether I open or close the table of contents. Both times it shows up to version 2.3.35. It's also noticeable that the table of contents starts on a new page. (Windows, Firefox, "save as PDF")

But thanks anyway, it works perfectly for me!

Martin


===== Ursprüngliche Nachricht =====
Von: Petko Yotov <5ko at 5ko.fr>
Am: 19.01.2026, 12:21:56 Uhr
Betreff: Re: [pmwiki-users] TOC no scrolling please

I have updated the core styles for the next PmWiki version.

If the table of contents is closed, the [Contents] frame will not be
printed. If it is open, the full table of contents will be printed
without scrolling or hidden lines.

Try it on a page on pmwiki.org with many headings, for example here:

   https://www.pmwiki.org/wiki/PmWiki/ChangeLog

You can add this to pub/css/local.css to enable the same before
upgrading to 2.5.6:

   @media print {
     .PmTOCtable {
       max-height: none;
       overflow: visible;
       line-height: var(--pm-lineheight);
     }
     .PmTOCdiv:not([open]) {
       display:none;
     }
   }



Petko


-- 
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com



More information about the pmwiki-users mailing list