mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-03 05:32:06 -05:00
fix: use consistent fixed height for theme styling preview
Use a single 660px fixed height for the theme styling preview container for both app and link survey types, replacing the previous conditional height that left the link survey preview too short.
This commit is contained in:
@@ -92,7 +92,7 @@ export const ThemeStylingPreviewSurvey = ({
|
||||
},
|
||||
shrink: {
|
||||
width: ["83.33%"],
|
||||
height: isAppSurvey ? ["600px"] : "auto", // Fixed height for App survey visibility
|
||||
height: ["660px"],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -148,7 +148,8 @@ export const ThemeStylingPreviewSurvey = ({
|
||||
}
|
||||
className={cn(
|
||||
"relative z-10 flex w-5/6 flex-col rounded-lg border border-slate-300 shadow-xl",
|
||||
isAppSurvey ? "h-[600px] max-h-[95%] bg-slate-200" : "h-auto max-h-[85%] overflow-y-auto bg-white"
|
||||
"h-[660px] max-h-[95%]",
|
||||
isAppSurvey ? "bg-slate-200" : "overflow-y-auto bg-white"
|
||||
)}>
|
||||
<div className="flex h-auto w-full items-center rounded-t-lg bg-slate-100 py-2">
|
||||
<div className="ml-6 flex space-x-2">
|
||||
|
||||
Reference in New Issue
Block a user