diff --git a/CHANGELOG.md b/CHANGELOG.md index e958251..a60d461 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [0.1.9] - 2026-03-29 + +### Changed + +- **Category tree full-width items** (`category-tree-node.html.twig`): Made `` elements direct children of the `list-group` so they span the full parent/offcanvas width; moved chevron toggle inside the link as a `` with click interception +- **Category tree nav wrapper** (`category-tree.html.twig`): Added `w-100` to nav and list-group containers + ## [0.1.8] - 2026-03-29 ### Changed diff --git a/CLAUDE.md b/CLAUDE.md index 2438c38..05b9a2a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -345,10 +345,20 @@ The child theme inherits from `wp-bootstrap` via WordPress `Template: wp-bootstr ## Version History -Current version: **v0.1.8** +Current version: **v0.1.9** ## Session History +### 2026-03-29 — v0.1.9 Category Tree Full-Width Items + +**Scope:** Made category tree items span the full parent/offcanvas width. + +**Files modified (3):** + +- `templates/global/category-tree.html.twig` — Added `w-100` to nav and list-group containers +- `templates/global/category-tree-node.html.twig` — Made `` elements direct children of the list-group; moved chevron toggle inside the link as a `` with `event.preventDefault()` click interception +- `style.css` — Version bump 0.1.8 → 0.1.9 + ### 2026-03-29 — v0.1.8 Restyle Category Tree to Idiomatic Bootstrap **Scope:** Restyled the category tree sidebar to use Bootstrap's native `list-group-item-action` pattern with subtler active highlighting. diff --git a/style.css b/style.css index 95ebc11..57697b5 100644 --- a/style.css +++ b/style.css @@ -7,7 +7,7 @@ Description: A Bootstrap 5 child theme for WP Bootstrap that overrides all WooCo Requires at least: 6.7 Tested up to: 6.7 Requires PHP: 8.3 -Version: 0.1.8 +Version: 0.1.9 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Template: wp-bootstrap diff --git a/templates/global/category-tree-node.html.twig b/templates/global/category-tree-node.html.twig index c1e76d1..3a097f7 100644 --- a/templates/global/category-tree-node.html.twig +++ b/templates/global/category-tree-node.html.twig @@ -2,7 +2,7 @@ # Single Category Tree Node (recursive) # # Renders one category as a list-group-item-action link with optional - # collapsible nested list for children. Included recursively. + # collapsible nested children. Included recursively. # # Expected context: # node - Category node from wc_bootstrap_get_category_tree() @@ -15,33 +15,30 @@ {% set has_children = node.children is not empty %} {% set is_open = node.is_active or node.is_ancestor %} -
-
- - {{ node.name }} - ({{ node.count }}) - - {% if has_children %} - - {% endif %} -
- + + {{ node.name }} + ({{ node.count }}) {% if has_children %} -
- {% for child in node.children %} - {% include 'global/category-tree-node.html.twig' with { node: child, level: level + 1 } only %} - {% endfor %} -
+ + + {% endif %} -
+ + +{% if has_children %} +
+ {% for child in node.children %} + {% include 'global/category-tree-node.html.twig' with { node: child, level: level + 1 } only %} + {% endfor %} +
+{% endif %} diff --git a/templates/global/category-tree.html.twig b/templates/global/category-tree.html.twig index e99a18a..be0c77f 100644 --- a/templates/global/category-tree.html.twig +++ b/templates/global/category-tree.html.twig @@ -14,14 +14,14 @@ #} {% if categories is not empty %} -