Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Oct 17, 2025

Summary

  • restyle the Prettyblock table of contents summary to match the provided UX with a sticky card layout
  • simplify the navigation toggles and default-open behavior for the first category and subsection
  • refresh section spacing and active states for clearer reading in the content column

Testing

  • not run (not requested)

https://chatgpt.com/codex/tasks/task_e_68f2109f6b2c8322ab375c81a6b3e23e

@CySSoO CySSoO merged commit 1ebc6cc into master Oct 17, 2025
0 of 6 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +35 to +38
<div class="col-12 col-lg-4">
<aside class="pb-toc-summary">
{if isset($block.settings.title) && $block.settings.title}
<h2 class="pb-toc-title h4 mb-4">{$block.settings.title|escape:'htmlall'}</h2>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep TOC summary element a sibling of content

The markup now renders .pb-toc-summary inside its own <aside> nested within the column, so it no longer sits as a sibling next to .pb-toc-content. The initialization code in views/js/everblock.js (initPrettyblockToc, lines 3075‑3081) relies on $summary.siblings('.pb-toc-content') to locate the content pane; with the current structure the lookup returns empty, the function exits early, and no sections are marked is-active or synced with their toggles. On pages with a Prettyblock TOC, the interactive behaviour (collapsing sections, active link highlighting, hash updates) stops working. Either keep the class on the column or update the JS to traverse to the parent column before searching for .pb-toc-content.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants