From c48a887c92bcb80d2e687bd7523a92a01eb4077a Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sat, 11 Dec 2021 12:22:01 +0000 Subject: [PATCH] Bug 797502 - (RTL) - Right edge of the reports are locked Running gnucash in Hebrew, the right edge of the reports are locked while scrolling down and do not scroll with the rest of the report. Adding a left and right margin of 8px fixes this and I think looks better as text is not immediately against window edge. Keeping top and bottom margin at 0px prevents the scrollbar from appearing in charts. --- gnucash/report/html-fonts.scm | 2 +- gnucash/report/stylesheets/css.scm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gnucash/report/html-fonts.scm b/gnucash/report/html-fonts.scm index 08d208114e..fb600e23d0 100644 --- a/gnucash/report/html-fonts.scm +++ b/gnucash/report/html-fonts.scm @@ -177,7 +177,7 @@ "body, p, table, tr, td { vertical-align: top; " text-cell-info " }\n" "tr.alternate-row { background: " alternate-row-color " }\n" "tr { page-break-inside: avoid !important;}\n" - "html, body { height: 100vh; margin: 0; }\n" + "html, body { height: 100vh; margin-top: 0px; margin-bottom: 0px; margin-left: 8px; margin-right: 8px; }\n" "td, th { border-color: grey }\n" "th.column-heading-left { text-align: left; " number-header-info " }\n" "th.column-heading-center { text-align: center; " number-header-info " }\n" diff --git a/gnucash/report/stylesheets/css.scm b/gnucash/report/stylesheets/css.scm index edbb87b7a8..ae47ddea8b 100644 --- a/gnucash/report/stylesheets/css.scm +++ b/gnucash/report/stylesheets/css.scm @@ -38,7 +38,10 @@ html, body { height: 100vh; - margin: 0; + margin-top: 0px; + margin-bottom: 0px; + margin-left: 8px; + margin-right: 8px; font-family: \"Noto Sans\", Sans-Serif; font-size: 10pt; }