From 84fa54c358b5d2c99427f95889382f57fcfc13e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 31 Aug 2023 11:23:00 +0000 Subject: [PATCH] Make the generated report use the correct background color (#165) Also: * Remove font and color overrides from generated reports * Remove side-nav from the exported report * Avoid creating a footer when it has no content * Fix report dimensions Signed-off-by: Miki (cherry picked from commit 13288ec3f3e5a441f50411fcdaf70562bd64d1a1) Signed-off-by: github-actions[bot] --- .../visual_report/assets/report_styles.ts | 17 ++---- .../visual_report/generate_report.ts | 58 ++++++++++++------- 2 files changed, 42 insertions(+), 33 deletions(-) diff --git a/public/components/visual_report/assets/report_styles.ts b/public/components/visual_report/assets/report_styles.ts index ab0d2f2a..6e59cf78 100644 --- a/public/components/visual_report/assets/report_styles.ts +++ b/public/components/visual_report/assets/report_styles.ts @@ -15,21 +15,14 @@ iframe, embed, object { display: none !important; } -/* nice padding + matches Kibana default UI colors you could also set this to inherit if - the wrapper gets inserted inside a kibana section. I might also remove the manual text color here as well, potentially */ .reportWrapper { padding: 8px; - background-color: #fafbfd; } /* Notice that I'm using an ID of #reportingHeader, and #reportingFooter, instead of a classname (.reportingHeader, .reportingFooter). This is in order to force specificity here higher in case any other styles would conflict */ #reportingHeader, #reportingFooter { - font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', - Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', - 'Segoe UI Symbol'; - background-color: #fff; border: 1px solid #d3dae6; box-shadow: 0 2px 2px -1px rgba(152, 162, 179, 0.3), 0 1px 5px -2px rgba(152, 162, 179, 0.3); @@ -99,11 +92,11 @@ iframe, embed, object { margin-bottom: inherit; } -