fniessen / org-html-themes

Transform your Org mode files into stunning HTML documents in minutes with our Org mode HTML theme. Elevate your productivity and impress your readers! #orgmode #html #theme #productivity #design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReadTheOrg postamble hides the bottom TOC entries

DarwinAwardWinner opened this issue · comments

In the ReadTheOrg theme, the postamble is placed at the bottom of the TOC column. However, it doesn't reduce the height of the TOC itself, which means that if the TOC extends to the bottom of the column, the last few entries are hidden under the postamble and are inaccessible. For example, with the org file below, the last TOC entry I can see is W, when it should be Z.

#+TITLE: Postamble hides bottom 3 TOC entries
#+AUTHOR: Ryan C. Thompson

# My Emacs doesn't like SETUPFILE so I manually pasted in the contents
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/readtheorg.css"/>
#+HTML_HEAD: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
#+HTML_HEAD: <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/lib/js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/readtheorg/js/readtheorg.js"></script>

* A
* B
* C
* D
* E
* F
* G
* H
* I
* J
* K
* L
* M
* N
* O
* P
* Q
* R
* S
* T
* U
* V
* W
* X
* Y
* Z

Here is a screenshot of the lower left corner of the resulting html, after scrolling to the bottom of the TOC:

Screen Region 2019-07-08 at 19 54 52

Dear @DarwinAwardWinner, I'm fully aware of this -- though, you should see a scrollbar… why don't you see it?

The real solution would be that the scrollbar comes automatically only when needed (when TOC is too large), and that it flows correctly when scrolling down in the document... But that's over my current CSS capabilities... Anyone?

There is a scrollbar, but it's invisible when not scrolling because I'm on MacOS with a touchpad only. If I plugged in a mouse, the scrollbar would appear statically.

OK, so that's just a matter of display -- but it is there.

For the other issue, yes, any help for a CSS black belt would be welcome...

A less-than-ideal workaround is to hide the postamble entirely with: #+OPTIONS: html-postamble:nil

I would like to add that in my case the scroll bar appears but it doesn't scroll all the way down.