# HG changeset patch
# User Cédric Krier <ced@b2ck.com>
# Date 1551051454 -3600
#      Mon Feb 25 00:37:34 2019 +0100
# Node ID 90e49ba9b3b46290a0aac2bedde46769a2c9c9c1
# Parent  b22ba488d5a8076ae088310a2f1161b04ca5c5b4
Make toc sticky up to the bottom of the page

diff --git a/templates/layout-toc.html b/templates/layout-toc.html
--- a/templates/layout-toc.html
+++ b/templates/layout-toc.html
@@ -17,7 +17,7 @@
         <div class="row flex-md-nowrap">
             {{ super() }}
             {% block toc %}
-            <div class="d-none d-md-block col-md-2 order-2 sticky-top" style="top: 1rem; height: 100vh;">
+            <div class="d-none d-md-block col-md-2 order-2 sticky-top" style="top: 1rem; height: 100%;">
                 {{ nav(toc, "nav flex-column border-left") }}
             </div>
             {% endblock toc %}