From a247670ab921620f09da55e0d1950bfe54adddbc Mon Sep 17 00:00:00 2001 From: Nonimart Date: Thu, 26 Jun 2025 14:04:09 +0200 Subject: [PATCH] FIX Cite button behaviour and style --- resources/css/components/post-header.css | 8 ++++---- template-parts/post-header.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/css/components/post-header.css b/resources/css/components/post-header.css index ad6759c..6459a8b 100644 --- a/resources/css/components/post-header.css +++ b/resources/css/components/post-header.css @@ -37,20 +37,20 @@ } .socials-buttons { - @apply flex gap-4; + @apply flex gap-4 h-fit; &__button { - @apply bg-white text-carhop-green-700 px-4 py-2 font-normal rounded-full w-fit flex items-center gap-2; + @apply bg-white text-carhop-green-700 px-8 !py-4 font-normal rounded-full w-max flex items-center gap-2; transition: transform 0.3s ease-in-out; &:hover { transform: scale(1.05); } - &[disabled='true'] { + &[disabled] { @apply opacity-50 cursor-not-allowed; } img { - @apply w-8 h-8 filter-primary; + @apply w-7 h-7 filter-primary; } } } diff --git a/template-parts/post-header.php b/template-parts/post-header.php index 51c6ce7..b0cd4a0 100644 --- a/template-parts/post-header.php +++ b/template-parts/post-header.php @@ -14,7 +14,7 @@ $issueNumber = get_field('issue_number', $currentRevueID); $post_type = get_post_type(); $hasThumbnail = has_post_thumbnail(); -$citeReference = get_field('cite_reference', $currentRevueID); +$citeReference = get_field('cite_reference', get_the_ID()); ?> @@ -64,7 +64,7 @@ $citeReference = get_field('cite_reference', $currentRevueID);
-