[fix] force code-block direction to be ltr

This commit is contained in:
PrinOrange
2024-08-12 11:32:33 +08:00
parent c36f7f6a38
commit 77cbd2a9f8

View File

@@ -33,7 +33,7 @@ const PreWrapper = ({ children }: { children: JSX.Element }) => {
{copied ? <FaCheck /> : <IoCopyOutline />} {copied ? <FaCheck /> : <IoCopyOutline />}
</Button> </Button>
)} )}
<pre className="p-2 dark:bg-[#0d1117] bg-[#F6F8FA] rounded-md flat-scrollbar-normal not-prose text-sm dark:selection:bg-gray-700 selection:bg-gray-300 selection:text-inherit"> <pre className="p-2 dark:bg-[#0d1117] bg-[#F6F8FA] rounded-md flat-scrollbar-normal not-prose text-sm dark:selection:bg-gray-700 selection:bg-gray-300 selection:text-inherit" dir="ltr">
{children} {children}
</pre> </pre>
</div> </div>