This commit is contained in:
Dhruwang
2025-05-23 15:43:48 +05:30
parent 25e4575172
commit f4fe8674fd
3 changed files with 3 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ export function EndingCard({
questionId="EndingCard"
/>
{endingCard.buttonLabel ? (
<div className="fb-mt-6 fb-flex fb-w-full fb-flex-col fb-items-center fb-justify-center fb-space-y-4">
<div className="fb-mt-4 fb-flex fb-w-full fb-flex-col fb-items-center fb-justify-center fb-space-y-4">
<SubmitButton
buttonLabel={replaceRecallInfo(
getLocalizedValue(endingCard.buttonLabel, languageCode),

View File

@@ -33,7 +33,7 @@ export const StackedCard = ({
}: StackedCardProps) => {
const [delayedOffset, setDelayedOffset] = useState<number>(offset);
const [contentOpacity, setContentOpacity] = useState<number>(0);
const currentCardHeight = delayedOffset === 0 ? "auto" : cardHeight;
const currentCardHeight = offset === 0 ? "auto" : offset < 0 ? "initial" : cardHeight;
const isHidden = offset < 0 || offset > 2;
const getBottomStyles = () => {

View File

@@ -112,7 +112,7 @@ export function StackedCardsContainer({
});
resizeObserver.current.observe(currentElement);
}
}, 200);
}, 0);
return () => {
resizeObserver.current?.disconnect();
clearTimeout(timer);