From c127a1d06524e60c5287b6f5a068cea3209c7750 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Wed, 12 Aug 2026 10:44:35 -0500 Subject: [PATCH] Fix icon and avatar rendering: remove SVG viewport rects + inline avatar styles - Removed the viewport markers from each social-share SVG. With 'fill=none' the rect was still visible if any inherited stroke wasn't suppressed (which turned out to be unreliable across themes/CSS specificity). - Removed redundant width='24' height='24' attributes from each SVG so the CSS .project-social-sharing svg { width:20px; height:20px } can size them unambiguously. - Inlined avatar styles (width:50px; height:50px; border-radius:50%; object-fit:cover; flex-shrink:0; display:block) so the avatar is guaranteed to render as a 50x50 circle regardless of theme CSS. - Switched .project-owner-avatar to inline-flex so the span shrinks to the image's natural size within the flex parent. --- assets/css/style.css | 4 +++- projects-portfolio.php | 14 +++++++------- templates/single-projects.php | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 68efcbb..35c2755 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -101,7 +101,9 @@ .project-owner-avatar { flex: 0 0 auto; - display: block; + display: inline-flex; + align-items: center; + justify-content: center; } .project-owner-name { diff --git a/projects-portfolio.php b/projects-portfolio.php index d4f2cb8..bef89fc 100644 --- a/projects-portfolio.php +++ b/projects-portfolio.php @@ -352,37 +352,37 @@ function projects_portfolio_social_sharing_buttons( $project_id ) { // Facebook. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // X (Twitter). $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // LinkedIn. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Reddit. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // WhatsApp. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Pinterest. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Email. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; $html .= ''; diff --git a/templates/single-projects.php b/templates/single-projects.php index 8365db9..4709ff9 100644 --- a/templates/single-projects.php +++ b/templates/single-projects.php @@ -144,7 +144,7 @@ if ( $last_updated ) {
- <?php esc_attr_e( $owner_name ); ?> + <?php esc_attr_e( $owner_name ); ?>