mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
fix: tweaks
This commit is contained in:
@@ -11,13 +11,12 @@ export default function ImageSurveyBg({ localSurvey, handleBgChange }: ImageSurv
|
||||
<div className="mb-2 mt-4 w-full rounded-lg border bg-slate-50 p-4">
|
||||
<div className="flex w-full items-center justify-center">
|
||||
<FileInput
|
||||
id="choices-file-input"
|
||||
id="survey-bg-file-input"
|
||||
allowedFileExtensions={["png", "jpeg", "jpg"]}
|
||||
environmentId={localSurvey?.environmentId}
|
||||
onFileUpload={(url: string[]) => {
|
||||
handleBgChange(url[0], "image");
|
||||
}}
|
||||
// fileUrl={localSurvey?.surveyBackground?.bg}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -42,7 +42,7 @@ export default async function SurveyBg({ children, survey }: { children: React.R
|
||||
className={`flex min-h-screen flex-col items-center justify-center px-2`}
|
||||
style={{
|
||||
backgroundImage: `url(${survey.surveyBackground?.bg})`,
|
||||
backgroundSize: "inherit",
|
||||
backgroundSize: "cover",
|
||||
filter: survey.surveyBackground?.brightness
|
||||
? `brightness(${survey.surveyBackground.brightness}%)`
|
||||
: "none",
|
||||
|
||||
Reference in New Issue
Block a user