Skip to content

Commit 948dbb8

Browse files
committed
fix: added word-break: break-word for html receipt printing
1 parent 7d8404d commit 948dbb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/receiptio-server/src/services/print.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ export class PrintService {
242242
content: [
243243
`body { font-family: '${this.cfg.printHtmlFont}', sans-serif; }`,
244244
'body, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; }',
245-
`body { width: ${this.cfg.printHtmlWidth}; }`,
245+
`body { width: ${this.cfg.printHtmlWidth}; word-break: break-word; overflow-wrap: anywhere; }`,
246246
'h1 { font-size: 1.5em; }',
247247
'h2 { font-size: 1.25em; }',
248248
'h3 { font-size: 1.1em; }',
249249
'h4, h5, h6 { font-size: 1em; }',
250-
'p { font-size: 0.9em; }',
250+
'p { font-size: 0.9em; word-break: break-word; overflow-wrap: anywhere; }',
251251
'svg { max-width: 100%; height: auto; }',
252252
].join('\n'),
253253
});

0 commit comments

Comments
 (0)