diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-18 19:27:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-18 19:27:34 +0200 |
| commit | 4562b92498bd794da4058a87c0c5cbb0d048f047 (patch) | |
| tree | 08cf251868c760e6d5144ae3a0351e0320b3568f /themes/danix-xyz-hacker/layouts | |
| parent | 17048ab79312f1752a296ab150984a4ef30aed5c (diff) | |
| download | danixxyz-4562b92498bd794da4058a87c0c5cbb0d048f047.tar.gz danixxyz-4562b92498bd794da4058a87c0c5cbb0d048f047.zip | |
fix: code block copy icon, light theme bg, horizontal scroll
- Use .icon-copy/.icon-check classes on <i> tags so Feather preserves them on generated <svg>; fixes copy button not swapping to checkmark
- Add .chroma to light theme background override so #eff1f5 applies correctly
- Change .chroma overflow: hidden to overflow-x: auto to restore horizontal scrolling for long code lines
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html b/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html index 813c389..2b48840 100644 --- a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html +++ b/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html @@ -11,8 +11,8 @@ <div class="code-copy-wrapper"> <span role="status" aria-live="polite" class="sr-only code-copy-status"></span> <button class="code-copy-btn" aria-label="Copy code" data-copy-target> - <i data-feather="copy" aria-hidden="true"></i> - <i data-feather="check" aria-hidden="true" class="hidden"></i> + <i data-feather="copy" class="icon-copy" aria-hidden="true"></i> + <i data-feather="check" class="icon-check hidden" aria-hidden="true"></i> </button> </div> </div> |
