fix: booking modal positioning — use portal to render in document.body

Also make header full-width (remove max-w-6xl constraint).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 23:18:25 +03:00
parent a4dc8173fc
commit e5fae578ab
2 changed files with 5 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ export function Header() {
: "bg-transparent"
}`}
>
<div className="mx-auto flex h-16 max-w-6xl items-center justify-between px-6 sm:px-8">
<div className="flex h-16 items-center justify-between px-6 sm:px-10 lg:px-16">
<Link href="/" className="group flex items-center gap-2.5">
<div className="relative flex h-8 w-8 items-center justify-center">
<div

View File

@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect, useCallback } from "react";
import { createPortal } from "react-dom";
import { X, Instagram, Send, CheckCircle, Phone } from "lucide-react";
import { siteContent } from "@/data/content";
@@ -84,7 +85,7 @@ export function BookingModal({ open, onClose }: BookingModalProps) {
if (!open) return null;
return (
return createPortal(
<div
className="modal-overlay fixed inset-0 z-50 flex items-center justify-center p-4"
onClick={handleClose}
@@ -193,6 +194,7 @@ export function BookingModal({ open, onClose }: BookingModalProps) {
</>
)}
</div>
</div>
</div>,
document.body
);
}