Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-11-27 10:44:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
87382f29f3ed97e3fd0153ea8a89ef9a4e0e865b
87382f29
1 parent
5e9da9cf
Adjust the Formatting and Layout of Data Blocks in the Generated PDF
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
ReportEngine/renderers/html_renderer.py
ReportEngine/renderers/pdf_layout_optimizer.py
ReportEngine/renderers/html_renderer.py
View file @
87382f2
...
...
@@ -2762,12 +2762,17 @@ table th {{
font-size: 2rem;
font-weight: 700;
display: flex;
flex-wrap: wrap;
flex-wrap:
no
wrap;
gap: 4px 6px;
line-height: 1.25;
word-break: break-word;
overflow-wrap: break-word;
}}
.kpi-value small {{
font-size: 0.65em;
align-self: baseline;
white-space: nowrap;
}}
.kpi-label {{
color: var(--secondary-color);
line-height: 1.35;
...
...
ReportEngine/renderers/pdf_layout_optimizer.py
View file @
87382f2
...
...
@@ -926,9 +926,15 @@ p {{
hyphens: auto;
max-width: 100
%
;
display: flex;
flex-wrap: wrap;
flex-wrap:
no
wrap;
align-items: baseline;
gap: 4px 6px;
}}
.kpi-card .kpi-value small {{
font-size: 0.65em;
white-space: nowrap;
align-self: baseline;
}}
.kpi-card .kpi-label {{
font-size: {body_kpi_label}px !important;
word-break: break-word;
...
...
Please
register
or
login
to post a comment