Update mdx command component to conform to mobile container size

This commit is contained in:
2025-04-23 12:26:34 -07:00
parent f2b4660300
commit 6711de5eb6

View File

@@ -29,7 +29,7 @@ const CommandSequence = ({
};
return (
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4">
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4" style={{ maxWidth: '95vw' }}>
{/* Header with Terminal Icon and Copy Button */}
<div className="bg-background border-b border-foreground/20 text-foreground p-2 flex items-center justify-between">
<div className="flex items-center">
@@ -141,7 +141,7 @@ const Commands = ({
};
return (
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4">
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4" style={{ maxWidth: '95vw' }}>
{/* Header with Terminal Icon and Copy Button */}
<div className="bg-background border-b border-foreground/20 text-foreground p-2 flex items-center justify-between">
<div className="flex items-center">
@@ -225,7 +225,7 @@ const Command = ({
};
return (
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4">
<div className="w-full rounded-md overflow-hidden border border-foreground/20 bg-background my-4" style={{ maxWidth: '95vw' }}>
{/* Header with Terminal Icon and Copy Button */}
<div className="bg-background border-b border-foreground/20 text-foreground p-2 flex items-center justify-between">
<div className="flex items-center">