fix(toc): restore correct floating TOC positioning after layout refactor

Fix incorrect TOC alignment caused by outdated DOM selector in toc.js.
The content reference element changed during layout refactor, breaking
position calculations for the floating TOC.

Updated contentColumn selector to use .main-wrapper/.container fallback,
ensuring correct left offset and responsive positioning.

Also adds a more robust fallback chain to prevent future regressions
when layout structure changes.
This commit is contained in:
2026-04-26 04:43:04 +02:00
parent 4408a738ec
commit 05de6f2028
3 changed files with 36 additions and 8 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ $show_hide_related_posts = get_theme_mod(
<div id="primary" class="inside-page content-area">
<div class="container">
<div class="main-wrapper">
<?php zeitfresser_render_floating_toc(); ?>
<section class="page-section full-width-view">
<div class="detail-content">