Skip to content

Commit

Permalink
Fix creator height
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Aug 7, 2024
1 parent 502aa49 commit 429be2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import { useEffect, useState } from "react";
import { SurveyCreatorComponent, SurveyCreator } from "survey-creator-react";

import styles from "./creator.module.css";

export default function Creator() {
let [creator, setCreator] = useState();

Expand All @@ -14,5 +16,9 @@ export default function Creator() {
setCreator(newCreator);
}, []);

return <div>{creator && <SurveyCreatorComponent creator={creator} />}</div>;
return (
<div className={styles.container}>
{creator && <SurveyCreatorComponent creator={creator} />}
</div>
);
}
5 changes: 5 additions & 0 deletions src/components/creator.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.container {
/* height: 100%; */

height: calc(100vh - 103.5px)
}

0 comments on commit 429be2b

Please sign in to comment.