From 0663d191fcab0962a6317a271dfb538b397f8644 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 23 Nov 2024 11:59:34 -0500 Subject: [PATCH] fix: Lists with negative margin are cut off when printing to PDF. This is a pragmatic fix for the issue closes #7958 --- shared/editor/components/Styles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 3235125685..843cd89edc 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1068,11 +1068,11 @@ a:hover { ul, ol { - margin: 0 0.1em 0 -26px; + margin: 0 0.1em 0 ${props.staticHTML ? "0" : "-26px"}; padding: 0 0 0 48px; &:dir(rtl) { - margin: 0 -26px 0 0.1em; + margin: 0 ${props.staticHTML ? "0" : "-26px"} 0 0.1em; padding: 0 48px 0 0; } }