update formatting
This commit is contained in:
@@ -112,7 +112,8 @@ export const AppealRow_pdf = (props) => {
|
||||
color: "grey"
|
||||
},
|
||||
documentList: {
|
||||
fontSize: 10
|
||||
fontSize: 10,
|
||||
lineHeight: 1.4
|
||||
},
|
||||
richArea: {
|
||||
fontSize: 12,
|
||||
@@ -432,51 +433,68 @@ export const AppealRow_pdf = (props) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10
|
||||
}}
|
||||
wrap={false}
|
||||
>
|
||||
<View
|
||||
wrap={false}
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
flexDirection: "column",
|
||||
marginBottom: 10
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
{/* Removed wrap={false} here so the list can flow to page 2 */}
|
||||
|
||||
<View
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
marginBottom: 10
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
style={
|
||||
styles.questionTextWide
|
||||
}
|
||||
>
|
||||
{rows[0].value}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View
|
||||
style={
|
||||
styles.questionTextWide
|
||||
styles.questionAnswerWide
|
||||
}
|
||||
>
|
||||
{rows[0].value}
|
||||
</Text>
|
||||
</View>
|
||||
<View
|
||||
style={
|
||||
styles.questionAnswerWide
|
||||
}
|
||||
>
|
||||
{blobList.map((blob, i) => (
|
||||
<Text key={i}>
|
||||
{getDocumentTypeFromFilename(
|
||||
blob.name
|
||||
) ===
|
||||
{blobList.map((blob, i) => {
|
||||
const isTargetType =
|
||||
getDocumentTypeFromFilename(
|
||||
blob.name
|
||||
) ===
|
||||
documentTypeCode[0]
|
||||
.value && (
|
||||
<Text
|
||||
style={
|
||||
styles.documentList
|
||||
}
|
||||
.value;
|
||||
|
||||
if (!isTargetType)
|
||||
return null;
|
||||
|
||||
return (
|
||||
/* wrap={false} here ensures a single filename stays together */
|
||||
<View
|
||||
key={i}
|
||||
wrap={false}
|
||||
style={{
|
||||
marginBottom: 4
|
||||
}}
|
||||
>
|
||||
{blob.name}
|
||||
{blob?.size &&
|
||||
" - " +
|
||||
bytesToSize(
|
||||
blob?.size
|
||||
)}{" "}
|
||||
{"\n"}
|
||||
</Text>
|
||||
)}
|
||||
</Text>
|
||||
))}
|
||||
<Text
|
||||
style={
|
||||
styles.documentList
|
||||
}
|
||||
>
|
||||
{blob.name}
|
||||
{blob?.size &&
|
||||
` - ${bytesToSize(blob.size)}`}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
})}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user