From 29e70c8b211d111f7d0a76a8659e0cbd188c9c91 Mon Sep 17 00:00:00 2001 From: Xin Date: Mon, 18 Mar 2024 18:37:47 +0000 Subject: [PATCH] fix: code copy button is invisible when hover (#323) * fix: code copy button is invisible when hover * chore: update hugo_stats.json file --- exampleSite/hugo_stats.json | 4 ++-- layouts/_default/_markup/render-codeblock.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exampleSite/hugo_stats.json b/exampleSite/hugo_stats.json index 244d90a4..7e00beac 100644 --- a/exampleSite/hugo_stats.json +++ b/exampleSite/hugo_stats.json @@ -208,8 +208,6 @@ "group-hover/code:hx-opacity-100", "group-hover:hx-underline", "group-open:before:hx-rotate-90", - "group/code", - "group/copybtn", "hamburger-menu", "hextra-card", "hextra-cards", @@ -303,6 +301,8 @@ "hx-grid", "hx-grid-cols-1", "hx-group", + "hx-group/code", + "hx-group/copybtn", "hx-grow", "hx-h-0", "hx-h-16", diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html index fb8a3c75..2b65e88d 100644 --- a/layouts/_default/_markup/render-codeblock.html +++ b/layouts/_default/_markup/render-codeblock.html @@ -4,7 +4,7 @@ {{- $copyCode := (T "copyCode") | default "Copy code" -}} -
+
{{- if $filename -}}
{{ $filename }}
{{- end -}} @@ -15,7 +15,7 @@ {{- end -}}