Skip to content

Commit

Permalink
Fixed the code page sizings or text and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Utsavladia committed Aug 10, 2024
1 parent 2913d0a commit 018423c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/PostCodeWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ function PostCodeWindow({
</div>
<div className="">
{activeTab === "html" ? (
<pre className="p-4 text-[#000435] bg-sky-300 dark:text-white dark:bg-gray-800 border-4 border-sky-700 rounded overflow-auto max-h-96">
<pre className="p-4 text-[#000435] bg-sky-300 dark:text-white dark:bg-gray-800 border-4 border-sky-700 rounded overflow-auto max-h-[30rem] text-xs md:text-base">
<code className="html rounded-lg">{codeSnippet}</code>
</pre>
) : (
<pre className="p-4 text-[#000435] bg-sky-300 dark:text-white dark:bg-gray-800 border-4 border-sky-700 rounded overflow-auto max-h-96">
<pre className="p-4 text-[#000435] bg-sky-300 dark:text-white dark:bg-gray-800 border-4 border-sky-700 rounded overflow-auto max-h-[30rem] text-xs md:text-base">
<code className="javascript rounded-lg">{jsCodeSnippet}</code>
</pre>
)}
Expand Down

0 comments on commit 018423c

Please sign in to comment.