Skip to content

Commit 674e2ed

Browse files
committed
Updated walkthrough to include Round 2 fixes: CSS adjustment for code copy button and optimization for Prism highlighting.
1 parent c2f6736 commit 674e2ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • JavaScript/2629. Function Composition/Claude Code Sonnet 4.6 extended

JavaScript/2629. Function Composition/Claude Code Sonnet 4.6 extended/README_react.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
border: none;
5656
cursor: pointer;
5757
}
58+
div.code-toolbar {
59+
position: relative;
60+
}
5861
</style>
5962
</head>
6063
<body class="bg-[#0f0e17] text-[#fffffe] min-h-screen">
@@ -1155,7 +1158,7 @@ <h3 class="text-lg font-bold text-[#e53170] mb-3">入出力例</h3>
11551158
if (window.Prism) {
11561159
window.Prism.highlightAll();
11571160
}
1158-
}); // Run on every render to ensure code blocks are highlighted
1161+
}, []); // Run only on mount to ensure code blocks are highlighted
11591162

11601163
useEffect(() => {
11611164
if (isPlaying) {

0 commit comments

Comments
 (0)