Skip to content

Commit 6b5b245

Browse files
committed
fix: clean up Live Preview frame and improve content centering
- Remove unnecessary gray frame that was appearing below the main frame - Simplify frame structure by removing relative positioning and max-width constraints - Fix content centering by using fixed width (200px) instead of responsive max-width - Remove redundant wrapper divs that were causing layout issues - Ensure proper centering with flex justify-center on the container - Maintain 9:16 aspect ratio and 400px height for realistic mobile appearance - Keep the black frame with rounded corners and shadow for professional look The Live Preview now shows a clean, properly centered mobile frame without any extra gray elements.
1 parent e2d5ea6 commit 6b5b245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/product/UX-patterns/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ const ComingSoonPattern = () => (
452452
<h5 className="text-sm font-medium text-white">
453453
Live Preview
454454
</h5>
455-
<div className="relative flex justify-center">
455+
<div className="flex justify-center">
456456
{/* Mobile Frame with 9:16 ratio (vertical phone) */}
457-
<div className="w-full max-w-[200px] bg-black rounded-[1.5rem] p-1 shadow-2xl">
457+
<div className="w-[200px] bg-black rounded-[1.5rem] p-1 shadow-2xl">
458458
<div className="bg-muted/20 rounded-[1.25rem] h-[400px] flex items-center justify-center" style={{ aspectRatio: '9/16' }}>
459459
<div className="text-center space-y-3 px-4">
460460
<Smartphone className="w-8 h-8 text-muted-foreground mx-auto" />

0 commit comments

Comments
 (0)