Skip to content

Commit ffb2dfb

Browse files
committed
fix: desktop code example rtl layout
1 parent 6c8c263 commit ffb2dfb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/CodeModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CodeModal = ({ children, isOpen, setIsOpen, title }: CodeModalProps) => {
5555
<Button
5656
variant="outline"
5757
onClick={() => onCopy(codeSnippet)}
58-
className="absolute end-4 top-20"
58+
className="absolute right-4 top-20" // Force right, code always LTR
5959
>
6060
{hasCopied ? (
6161
<>

src/pages/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,11 @@ const HomePage = ({
504504
className="relative border-t"
505505
dir="ltr"
506506
>
507-
<Suspense fallback={<SkeletonLines noOfLines={16} />}>
507+
<Suspense
508+
fallback={
509+
<SkeletonLines noOfLines={16} dir="ltr" />
510+
}
511+
>
508512
<div className="-m-2 max-h-[50vh] overflow-auto">
509513
<Codeblock
510514
codeLanguage={codeLanguage}

0 commit comments

Comments
 (0)