Browse Source

fix: add overflow handling and safe-area padding to information sheet and update SSR fetch with dynamic timeouts and logging

master
mortezaei 6 days ago
parent
commit
c0336a61f8
  1. 4
      src/components/Componentes/information-sheet.tsx

4
src/components/Componentes/information-sheet.tsx

@ -206,7 +206,7 @@ export function InformationSheet({
return ( return (
<div <div
className={[ className={[
"fixed inset-0 z-50 flex items-end justify-center transition-all duration-[220ms] animate-in fade-in",
"fixed inset-0 z-50 flex items-end justify-center overflow-y-auto transition-all duration-[220ms] animate-in fade-in",
isClosing ? "bg-[#171717]/0 opacity-0" : "bg-[#171717]/55 opacity-100", isClosing ? "bg-[#171717]/0 opacity-0" : "bg-[#171717]/55 opacity-100",
] ]
.filter(Boolean) .filter(Boolean)
@ -235,7 +235,7 @@ export function InformationSheet({
<section <section
{...props} {...props}
className={[ className={[
"w-full sm:max-w-[375px] rounded-t-[22px] bg-[#F9F8F8] p-4 text-center shadow-[0_20px_60px_rgba(15,23,42,0.08)] transition-transform duration-[220ms] ease-out will-change-transform animate-in slide-in-from-bottom",
"w-full sm:max-w-[375px] rounded-t-[22px] bg-[#F9F8F8] px-4 pt-4 pb-[max(24px,calc(24px+var(--safe-bottom)))] text-center shadow-[0_20px_60px_rgba(15,23,42,0.08)] transition-transform duration-[220ms] ease-out will-change-transform animate-in slide-in-from-bottom",
isClosing ? "translate-y-full" : "translate-y-0", isClosing ? "translate-y-full" : "translate-y-0",
className, className,
] ]

Loading…
Cancel
Save