[FIX] web: fix scss of ol tag in report
This is a temporary fix, it needs to be fix properly in future. It was working properly with HTML reports but when it is render with wkhtmltopdf it does not apply padding on left. Due to which issue is occuring. Task id: 2499504 X-original-commit: 2958c8d08f4bdab94ba55fc944db6d314fb3fa43
This commit is contained in:
committed by
Thibault Delavallée
parent
025004309c
commit
3d35ea645f
@@ -92,6 +92,17 @@ table {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: investigate further for proper fix
|
||||
// By default there is 40px padding on the lists (both <ol> and <ul>) and it is
|
||||
// also the case with HTML reports, but when PDFs are rendered with Wkhtmltopdf,
|
||||
// the padding is not applied on <ol>, it is strangely applied on <ul> only.
|
||||
// So we simply remove the left padding, and apply left margin instead which
|
||||
// seems to do the job while not breaking layout in both html/pdf.
|
||||
ol {
|
||||
margin-left: 40px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
// Wkhtmltopdf doesn't handle flexbox properly, both the content
|
||||
// of columns and columns themselves does not wrap over new lines
|
||||
// when needed: the font of the pdf will reduce to make the content
|
||||
|
||||
Reference in New Issue
Block a user