From df486e06bd8640ac6b2b4a8cd1c582024e8dfd43 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Mon, 6 Jul 2026 15:44:33 +0800 Subject: [PATCH] fix(corporate-modernist): SVG geometry guard on icons (Wave B 4d) Add explicit width/height to the 4 icon SVGs (author-bio-hero social x3 = 20x20, sidebar-nav = 16x16). The theme's cm-icon class has no CSS sizing, so an unsized SVG balloons to the SVG default box; explicit presentation attributes pin the geometry regardless of the host Tailwind JIT. Matches the art-deco pattern. bump to 0.4.1 Co-Authored-By: Claude Fable 5 --- plugin.mod | 2 +- .../overrides/corporate-modernist/author-bio-hero.ninjatpl | 2 +- templates/overrides/corporate-modernist/sidebar-nav.ninjatpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.mod b/plugin.mod index e0d9ec5..d802c4e 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "corporate-modernist" display_name = "Corporate Modernist" scope = "@themes" -version = "0.4.0" +version = "0.4.1" description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/corporate-modernist/author-bio-hero.ninjatpl b/templates/overrides/corporate-modernist/author-bio-hero.ninjatpl index c065884..257ef47 100644 --- a/templates/overrides/corporate-modernist/author-bio-hero.ninjatpl +++ b/templates/overrides/corporate-modernist/author-bio-hero.ninjatpl @@ -1 +1 @@ -{% if context.currentAuthor %}
{% if showAvatar and context.currentAuthor.avatarUrl %}{{ context.currentAuthor.displayName }}{% else %}{% endif %}

{{ context.currentAuthor.displayName }}

{% if context.currentAuthor.bio %}

{{ context.currentAuthor.bio }}

{% endif %}{% if showSocial %}
{% if context.currentAuthor.websiteUrl %}{% endif %}{% if context.currentAuthor.twitterHandle %}{% endif %}{% if context.currentAuthor.linkedinUrl %}{% endif %}
{% endif %}
{% endif %} +{% if context.currentAuthor %}
{% if showAvatar and context.currentAuthor.avatarUrl %}{{ context.currentAuthor.displayName }}{% else %}{% endif %}

{{ context.currentAuthor.displayName }}

{% if context.currentAuthor.bio %}

{{ context.currentAuthor.bio }}

{% endif %}{% if showSocial %}
{% if context.currentAuthor.websiteUrl %}{% endif %}{% if context.currentAuthor.twitterHandle %}{% endif %}{% if context.currentAuthor.linkedinUrl %}{% endif %}
{% endif %}
{% endif %} diff --git a/templates/overrides/corporate-modernist/sidebar-nav.ninjatpl b/templates/overrides/corporate-modernist/sidebar-nav.ninjatpl index 870c7e9..4a1a835 100644 --- a/templates/overrides/corporate-modernist/sidebar-nav.ninjatpl +++ b/templates/overrides/corporate-modernist/sidebar-nav.ninjatpl @@ -1,3 +1,3 @@ -