Skip to content

Commit d96df1a

Browse files
Fix: [i had fixed the Code block overflow issue in pre section on home page] (#11)
1 parent 7a0dfe5 commit d96df1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/LandingPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export const LandingPage = () => {
172172
<span className="ml-2 text-xs text-gray-400 font-mono">VS Code + LeetCode</span>
173173
</div>
174174
{/* Code content */}
175-
<div className="px-6 pt-4 pb-2">
176-
<pre className="font-mono text-green-400 text-sm leading-relaxed mb-2 bg-transparent p-0">
175+
<div className="px-4 pt-4 pb-2">
176+
<pre className="font-mono text-green-400 text-sm leading-relaxed mb-2 bg-transparent px-2 py-1 whitespace-pre-wrap break-words">
177177
{`// Day 1: Binary Search + React Setup
178178
function binarySearch(arr, target) {
179179
return recursiveSearch(arr, 0, arr.length-1, target);

0 commit comments

Comments
 (0)