mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 19:21:15 -05:00
tweaks
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
@@ -112,7 +112,7 @@ export function StackedCardsContainer({
|
||||
});
|
||||
resizeObserver.current.observe(currentElement);
|
||||
}
|
||||
}, 200);
|
||||
}, 0);
|
||||
return () => {
|
||||
resizeObserver.current?.disconnect();
|
||||
clearTimeout(timer);
|
||||
|
||||
Reference in New Issue
Block a user