Skip to content

Commit 2fe958f

Browse files
authored
Merge pull request #1776 from AletheiaFact/bug-layout-container
fixed layout issue in the form containers.
2 parents 79b7794 + b4b00ba commit 2fe958f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/Form/DynamicForm.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Grid } from "@mui/material"
1+
import { Grid } from "@mui/material";
22

33
import { Controller } from "react-hook-form";
44
import DynamicInput from "./DynamicInput";
@@ -44,7 +44,14 @@ const DynamicForm = ({
4444
{t(label)}
4545
</h4>
4646
</Grid>
47-
<Grid item xs={12} style={{ margin: "10px 0" }}>
47+
<Grid
48+
item
49+
xs={12}
50+
style={{
51+
margin: "10px 0",
52+
wordBreak: "break-word",
53+
}}
54+
>
4855
<Controller
4956
name={fieldName}
5057
control={control}

src/components/SentenceReport/SentenceReportContent.style.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import styled from "styled-components";
22

33
const SentenceReportContentStyle = styled.div`
44
margin: 10px 0;
5+
word-break: break-word;
6+
57
.title {
68
font-size: 16px;
79
font-weight: 700;
@@ -10,7 +12,6 @@ const SentenceReportContentStyle = styled.div`
1012
1113
.paragraph {
1214
font-size: 18px;
13-
word-break: "break-all";
1415
}
1516
`;
1617

0 commit comments

Comments
 (0)