Skip to content

Commit

Permalink
feat: update rtl option
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywu001 committed Mar 1, 2023
1 parent b58909c commit 6c882ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
12 changes: 0 additions & 12 deletions sandpack-react/src/Playground.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,3 @@ export const Basic: React.FC = () => {
</>
);
};
export const RtlLayout: React.FC = () => {
return (
<>
<Sandpack
options={{
rtl: true,
}}
template="react"
/>
</>
);
};
13 changes: 13 additions & 0 deletions sandpack-react/src/presets/Sandpack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,16 @@ Write-Output $example`,
}}
/>
);

export const RtlLayout: React.FC = () => {
return (
<>
<Sandpack
options={{
rtl: true,
}}
template="react"
/>
</>
);
};
2 changes: 1 addition & 1 deletion sandpack-react/src/presets/Sandpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const consoleWrapper = css({
overflow: "hidden",
});

export const rtlLayoutClassName = css({
const rtlLayoutClassName = css({
flexDirection: "row-reverse",

"@media screen and (max-width: 768px)": {
Expand Down

0 comments on commit 6c882ee

Please sign in to comment.