Skip to content

Commit

Permalink
fix: SP Layout (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ai authored Apr 13, 2024
1 parent b04599e commit f19babe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/website/src/content/docs/en/TwoCols.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ type TwoColsProps = {

export const TwoCols: FC<TwoColsProps> = ({ className, left, right }) => {
return (
<div className={cn("my-6 grid !max-w-screen-lg grid-cols-2 items-start gap-6", className)} data-two-cols>
<div
className={cn("my-6 grid !max-w-screen-lg grid-cols-1 items-start gap-6 sm:grid-cols-2", className)}
data-two-cols
>
{left}
{right}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/pages/playground/_Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Tab: FC<TabProps> = ({ tabs, defaultTab }) => {
const [tab, setTab] = useState<keyof typeof tabs>(defaultTab)

return (
<div className="flex h-0 min-h-full flex-col">
<div className="flex h-0 min-h-full flex-col overflow-auto">
<div className="mx-6 flex h-10 flex-row items-center gap-6">
{Object.keys(tabs).map((key) => (
<div
Expand Down
4 changes: 4 additions & 0 deletions packages/website/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,8 @@
html {
@apply h-full;
}

.katex {
@apply overflow-auto;
}
}

0 comments on commit f19babe

Please sign in to comment.