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-12-11 18:04:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1af364014ade170f2af129c1cd0c3f8389679f44
1af36401
1 parent
d75fb044
Add SWOT adaptive adjustment
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
ReportEngine/renderers/html_renderer.py
ReportEngine/renderers/pdf_renderer.py
ReportEngine/renderers/html_renderer.py
View file @
1af3640
...
...
@@ -3208,6 +3208,21 @@ table th {{
color: var(--swot-muted);
opacity: 0.7;
}}
/* PDF/导出时的SWOT专用布局,避免圆角框重叠 */
body.exporting .swot-legend {{
display: none !important;
}}
body.exporting .swot-grid {{
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: stretch;
}}
body.exporting .swot-cell {{
flex: 1 1 320px;
min-width: 240px;
height: auto;
}}
.callout {{
border-left: 4px solid var(--primary-color);
padding: 16px;
...
...
@@ -3464,6 +3479,20 @@ blockquote {{
.swot-card {{
color: var(--swot-text);
}}
.swot-legend {{
display: none !important;
}}
.swot-grid {{
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: stretch;
}}
.swot-grid .swot-cell {{
flex: 1 1 320px;
min-width: 240px;
height: auto;
}}
.table-wrap {{
overflow-x: auto;
max-width: 100
%
;
...
...
ReportEngine/renderers/pdf_renderer.py
View file @
1af3640
...
...
@@ -1049,6 +1049,26 @@ body {{
min-height: 400px;
}}
/* SWOT:PDF导出隐藏四象限标注,并使用自适应布局避免重叠 */
.swot-legend {{
display: none !important;
}}
.swot-grid {{
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: stretch;
}}
.swot-grid .swot-cell {{
flex: 1 1 320px;
min-width: 240px;
height: auto;
page-break-inside: avoid;
}}
.swot-card {{
page-break-inside: avoid;
}}
{optimized_css}
</style>
"""
...
...
Please
register
or
login
to post a comment