File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,10 @@ export const StyledPrintEntryText = styled.span`
1818 font-size: ${ FontSizes . copy } ;
1919 padding-right: ${ Spacings . s } ;
2020`
21+
22+ export const PrintText = styled . p `
23+ margin: 0;
24+ padding: 0;
25+ white-space: pre-wrap;
26+ word-break: break-word;
27+ `
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 StyledPrintDaySubHeadline ,
1414 StyledPrintEntry ,
1515 StyledPrintEntryText ,
16+ PrintText ,
1617 StyledPrintFooter ,
1718 StyledPrintFooterTotalWrapper ,
1819 StyledPrintHeader ,
@@ -111,7 +112,9 @@ export const Template: React.FC<TemplateProps> = ({
111112 . sort ( ( a , b ) => a . orderId - b . orderId )
112113 . map ( ( entry , entryIndex ) => (
113114 < StyledPrintEntry key = { entryIndex } >
114- < StyledPrintEntryText > { entry . text } </ StyledPrintEntryText >
115+ < StyledPrintEntryText >
116+ < PrintText > { entry . text } </ PrintText >
117+ </ StyledPrintEntryText >
115118 < StyledPrintEntryText > { minutesToString ( entry . time ) } </ StyledPrintEntryText >
116119 </ StyledPrintEntry >
117120 ) )
You can’t perform that action at this time.
0 commit comments