Removed some horizontal margins on PDFs
This commit is contained in:
@@ -103,13 +103,13 @@ const GroupTestReport = ({
|
|||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.textPadding}>
|
<View style={styles.textMargin}>
|
||||||
<Text style={defaultTextStyle}>Date of Test: {date}</Text>
|
<Text style={defaultTextStyle}>Date of Test: {date}</Text>
|
||||||
</View>
|
</View>
|
||||||
<Text style={[styles.textFont, styles.textBold, { fontSize: 11 }]}>
|
<Text style={[styles.textFont, styles.textBold, { fontSize: 11 }]}>
|
||||||
Candidate Information:
|
Candidate Information:
|
||||||
</Text>
|
</Text>
|
||||||
<View style={styles.textPadding}>
|
<View style={styles.textMargin}>
|
||||||
<Text style={defaultTextStyle}>Name: {name}</Text>
|
<Text style={defaultTextStyle}>Name: {name}</Text>
|
||||||
<Text style={defaultTextStyle}>ID: {id}</Text>
|
<Text style={defaultTextStyle}>ID: {id}</Text>
|
||||||
<Text style={defaultTextStyle}>Email: {email}</Text>
|
<Text style={defaultTextStyle}>Email: {email}</Text>
|
||||||
@@ -193,10 +193,8 @@ const GroupTestReport = ({
|
|||||||
]}
|
]}
|
||||||
key={label}
|
key={label}
|
||||||
>
|
>
|
||||||
<Text style={customStyles.tableCell}>
|
<Text style={customStyles.tableCell}>{label}</Text>
|
||||||
{label}
|
<View style={[customStyles.tableCell, { flex: 2 }]}>
|
||||||
</Text>
|
|
||||||
<View style={[customStyles.tableCell, { flex: 2}]}>
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
width={200}
|
width={200}
|
||||||
height={18}
|
height={18}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ export const styles = StyleSheet.create({
|
|||||||
title: {
|
title: {
|
||||||
textTransform: "uppercase",
|
textTransform: "uppercase",
|
||||||
},
|
},
|
||||||
textPadding: {
|
textMargin: {
|
||||||
margin: "8px",
|
marginVertical: "8px",
|
||||||
},
|
},
|
||||||
separator: {
|
separator: {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
|
|||||||
@@ -3,15 +3,20 @@ import { styles } from "./styles";
|
|||||||
import { View, Text } from "@react-pdf/renderer";
|
import { View, Text } from "@react-pdf/renderer";
|
||||||
|
|
||||||
const TestReportFooter = () => (
|
const TestReportFooter = () => (
|
||||||
<View style={[{ paddingTop: 30, fontSize: 5, position: 'absolute', bottom: 30, left: 35, right: 35 }, styles.textFont,]}>
|
<View
|
||||||
<View
|
style={[
|
||||||
style={[
|
{
|
||||||
styles.spacedRow,
|
paddingTop: 30,
|
||||||
{
|
fontSize: 5,
|
||||||
paddingHorizontal: 10,
|
position: "absolute",
|
||||||
},
|
bottom: 30,
|
||||||
]}
|
left: 35,
|
||||||
>
|
right: 35,
|
||||||
|
},
|
||||||
|
styles.textFont,
|
||||||
|
]}
|
||||||
|
>
|
||||||
|
<View style={[styles.spacedRow, styles.textMargin]}>
|
||||||
<View>
|
<View>
|
||||||
<Text>Validity</Text>
|
<Text>Validity</Text>
|
||||||
<Text>
|
<Text>
|
||||||
@@ -52,4 +57,4 @@ const TestReportFooter = () => (
|
|||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default TestReportFooter;
|
export default TestReportFooter;
|
||||||
|
|||||||
@@ -68,19 +68,19 @@ const TestReport = ({
|
|||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.textPadding}>
|
<View style={styles.textMargin}>
|
||||||
<Text style={defaultTextStyle}>Date of Test: {date}</Text>
|
<Text style={defaultTextStyle}>Date of Test: {date}</Text>
|
||||||
</View>
|
</View>
|
||||||
<Text style={[styles.textFont, styles.textBold, { fontSize: 11 }]}>
|
<Text style={[styles.textFont, styles.textBold, { fontSize: 11 }]}>
|
||||||
Candidate Information:
|
Candidate Information:
|
||||||
</Text>
|
</Text>
|
||||||
<View style={styles.textPadding}>
|
<View style={styles.textMargin}>
|
||||||
<Text style={defaultTextStyle}>Name: {name}</Text>
|
<Text style={defaultTextStyle}>Name: {name}</Text>
|
||||||
<Text style={defaultTextStyle}>ID: {id}</Text>
|
<Text style={defaultTextStyle}>ID: {id}</Text>
|
||||||
<Text style={defaultTextStyle}>Email: {email}</Text>
|
<Text style={defaultTextStyle}>Email: {email}</Text>
|
||||||
<Text style={defaultTextStyle}>Gender: {gender}</Text>
|
<Text style={defaultTextStyle}>Gender: {gender}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={{ height: '120px' }}>
|
<View style={{ height: "120px" }}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
styles.textFont,
|
styles.textFont,
|
||||||
@@ -131,7 +131,9 @@ const TestReport = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{testDetails
|
{testDetails
|
||||||
.filter(({ suggestions, evaluation }) => suggestions || evaluation)
|
.filter(
|
||||||
|
({ suggestions, evaluation }) => suggestions || evaluation
|
||||||
|
)
|
||||||
.map(({ module, suggestions, evaluation }) => (
|
.map(({ module, suggestions, evaluation }) => (
|
||||||
<View key={module} style={customStyles.testDetails}>
|
<View key={module} style={customStyles.testDetails}>
|
||||||
<Text style={[...defaultSkillsTitleStyle, styles.textBold]}>
|
<Text style={[...defaultSkillsTitleStyle, styles.textBold]}>
|
||||||
@@ -139,15 +141,11 @@ const TestReport = ({
|
|||||||
</Text>
|
</Text>
|
||||||
<Text style={defaultSkillsTextStyle}>{evaluation}</Text>
|
<Text style={defaultSkillsTextStyle}>{evaluation}</Text>
|
||||||
<Text style={defaultSkillsTextStyle}>{suggestions}</Text>
|
<Text style={defaultSkillsTextStyle}>{suggestions}</Text>
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
))}
|
))}
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.alignRightRow}>
|
<View style={styles.alignRightRow}>
|
||||||
<Image
|
<Image src={qrcode} style={styles.qrcode} />
|
||||||
src={qrcode}
|
|
||||||
style={styles.qrcode}
|
|
||||||
/>
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={[{ paddingBottom: 30 }, styles.separator]}></View>
|
<View style={[{ paddingBottom: 30 }, styles.separator]}></View>
|
||||||
|
|||||||
Reference in New Issue
Block a user