fix: survey card issues (#2854)

Co-authored-by: Johannes <johannes@formbricks.com>
This commit is contained in:
Dhruwang Jariwala
2024-07-06 09:59:17 +05:30
committed by GitHub
parent 7958ef0d1f
commit a00c696c1a
4 changed files with 7 additions and 7 deletions

View File

@@ -683,7 +683,7 @@ export const templates: TTemplate[] = [
},
{
id: createId(),
label: { default: "productManager" },
label: { default: "Product Manager" },
},
{
id: createId(),
@@ -748,7 +748,7 @@ export const templates: TTemplate[] = [
},
{
id: createId(),
label: { default: "productManager" },
label: { default: "Product Manager" },
},
{
id: createId(),

View File

@@ -170,7 +170,7 @@ export const StackedCardsContainer = ({
<div style={{ height: cardHeight }}></div>
{cardArrangement === "simple" ? (
<div
className={cn("w-full", fullSizeCards ? "h-full" : "")}
className={cn("fb-w-full", fullSizeCards ? "fb-h-full" : "")}
style={{
...borderStyles,
}}>

View File

@@ -128,7 +128,7 @@ export const Modal = ({
id="preview-survey-base"
aria-live="assertive"
className={cn(
"relative h-full w-full overflow-hidden",
"relative h-full w-full overflow-hidden rounded-b-md",
overlayStyle,
"transition-all duration-500 ease-in-out"
)}>
@@ -144,7 +144,7 @@ export const Modal = ({
}),
}}
className={cn(
"no-scrollbar pointer-events-auto absolute h-fit max-h-[90%] w-full max-w-sm transition-all duration-500 ease-in-out",
"no-scrollbar pointer-events-auto absolute max-h-[90%] w-full max-w-sm transition-all duration-500 ease-in-out",
previewMode === "desktop" ? getPlacementStyle(placement) : "max-w-full",
slidingAnimationClass
)}>

View File

@@ -5,9 +5,9 @@ export const getPlacementStyle = (placement: TPlacement) => {
case "bottomRight":
return "bottom-3 sm:right-3";
case "topRight":
return "sm:top-3 sm:right-3 bottom-3";
return "sm:top-6 sm:right-6";
case "topLeft":
return "sm:top-3 sm:left-3 bottom-3";
return "sm:top-6 sm:left-6";
case "bottomLeft":
return "bottom-3 sm:left-3";
case "center":