From 9e7102a05937bf83ae2916b9206be011098e2aa1 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 16 Jun 2026 13:23:12 +0200 Subject: [PATCH] fixes for book page toc --- src/wolnelektury/static/2022/styles/layout/_article.scss | 5 +++-- src/wolnelektury/static/js/book_text/references.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wolnelektury/static/2022/styles/layout/_article.scss b/src/wolnelektury/static/2022/styles/layout/_article.scss index cb913a36e..c4b1024fe 100644 --- a/src/wolnelektury/static/2022/styles/layout/_article.scss +++ b/src/wolnelektury/static/2022/styles/layout/_article.scss @@ -30,10 +30,11 @@ list-style: none; margin-top: 0.25rem; margin-bottom: 0; - li { + margin-left: 1em; font-size: 18px; - line-height: 150%; font-weight: normal; + li { + line-height: 150%; } diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index ee7e2bd91..394ec3ffd 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -610,6 +610,7 @@ $('a.anchor').on('click', function(e) { // Workaround for bad TOC markers. if ($(this).closest('#toc').length) return; + if ($(this).closest('.toc').length) return; if ($(this).closest('#wltoc').length) return; e.preventDefault(); -- 2.20.1