Skip to content

Commit fc0a257

Browse files
committed
fix: remove max-width constraint from code demo on mobile
1 parent aebc038 commit fc0a257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/docs/mdx/code-demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function CodeDemo({ children, language, rawContent }: CodeDemoProps) {
176176

177177
if (isMermaid) {
178178
return (
179-
<div className="rounded-lg border bg-muted/30 px-4 w-full max-w-80 md:max-w-full my-3 transition-all group hover:bg-muted/40 overflow-hidden">
179+
<div className="rounded-lg border bg-muted/30 px-4 w-full my-3 transition-all group hover:bg-muted/40 overflow-hidden">
180180
<div className="flex items-center justify-between h-6 mt-0.5 mb-0.5">
181181
<div className="text-[10px] text-muted-foreground/40 font-mono tracking-wide">
182182
mermaid diagram
@@ -202,7 +202,7 @@ export function CodeDemo({ children, language, rawContent }: CodeDemoProps) {
202202
}
203203

204204
return (
205-
<div className="rounded-lg border px-4 w-full max-w-80 md:max-w-full my-3 transition-all group overflow-x-auto">
205+
<div className="rounded-lg border px-4 w-full my-3 transition-all group overflow-x-auto">
206206
<div className="flex items-center justify-between h-6 mt-0.5 mb-0.5">
207207
<div className="text-[10px] text-muted-foreground/40 font-mono tracking-wide">
208208
{language.toLowerCase()}

0 commit comments

Comments
 (0)