fix(map): هم‌گام‌سازی بوم با ResizeObserver و کف ارتفاع ظرف — در حالت موبایل/DevTools پس از تغییر viewport نقشه ناقص و خالی می‌ماند

This commit is contained in:
aramesh-site deploy
2026-10-09 18:10:27 +00:00
parent 324298c9d7
commit 7d78a1fc58
2 changed files with 21 additions and 2 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ export function MapViewport({
const shellClass = isFullscreen
? 'fixed inset-0 z-[75] h-[100dvh] w-screen animate-[luxFadeIn_0.25s_ease-out] rounded-none border-0'
: `relative h-full w-full rounded-3xl border border-ivory/10 shadow-lift ${className}`
: `relative h-full min-h-[280px] w-full rounded-3xl border border-ivory/10 shadow-lift ${className}`
return (
<div
@@ -78,7 +78,7 @@ export function MapViewport({
است تا هم بستر موقعیت‌یابی فرزندان مپ‌لیبر باشد و هم هشدار
«container has a non-static position» و محاسبه‌ی اشتباه آفست اسکرول
رخ ندهد — ترتیب بار شدن CSS هیچ‌وقت تعیین‌کننده نباشد */}
<div ref={containerRef} className="relative h-full w-full" />
<div ref={containerRef} className="relative h-full min-h-[280px] w-full" />
{isFullscreen ? (
<button