fix: tweaks

This commit is contained in:
anjy7
2023-11-14 02:33:41 +05:30
parent 9f80ed6ec2
commit 057d2ec446
2 changed files with 2 additions and 3 deletions

View File

@@ -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>

View File

@@ -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",