update formatting

This commit is contained in:
2026-03-17 09:22:31 +00:00
parent 1e690608fb
commit f1775c2a96
3 changed files with 159 additions and 133 deletions
+53 -35
View File
@@ -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>
);