Skip to content

Commit

Permalink
fix: copy icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DelaraGi committed Nov 3, 2023
1 parent af6a975 commit c535670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pages/resources/[cheri].astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ const { resource } = Astro.props;
src="./node_modules/@github/clipboard-copy-element/dist/index.js"></script>
<script>
let copyButtonLabel = "Copy Code";
let copyButtonImageSrc =
"../../../public/assets/content/clipboard-copy.svg";
let copyButtonImageSrc = "/assets/content/clipboard-copy.svg";
let codeBlocks = Array.from(document.querySelectorAll("pre"));

for (let codeBlock of codeBlocks) {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/resources/[res].astro
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ const { Content } = await resource.render();
</style>
<script>
let copyButtonLabel = "Copy Code";
let copyButtonImageSrc =
"../../../public/assets/content/clipboard-copy.svg";
let copyButtonImageSrc = "/assets/content/clipboard-copy.svg";
let codeBlocks = Array.from(document.querySelectorAll("pre"));

for (let codeBlock of codeBlocks) {
Expand Down

0 comments on commit c535670

Please sign in to comment.