fix(report): group chart cards in the existing grid and stop remounting on scroll (BUG-616, BUG-617)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3832,31 +3832,17 @@ input:not([type="radio"]):not([type="checkbox"]):not([class^="ant-"]):not([class
|
||||
font-size: var(--type-title-sm);
|
||||
font-weight: 500;
|
||||
}
|
||||
@media (min-width: 720px) {
|
||||
/* Charts live in the eager 摘要 lead, not only later lazy H2 sections. */
|
||||
.personal-report-md-lead > h4.personal-report-chart-heading:has(+ .personal-report-chart-figure),
|
||||
.personal-report-md-section > h4.personal-report-chart-heading:has(+ .personal-report-chart-figure) {
|
||||
float: left;
|
||||
width: 50%;
|
||||
box-sizing: border-box;
|
||||
padding-inline: var(--space-3);
|
||||
margin-top: var(--space-5);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.personal-report-md-lead > h4.personal-report-chart-heading + .personal-report-chart-figure,
|
||||
.personal-report-md-section > h4.personal-report-chart-heading + .personal-report-chart-figure {
|
||||
float: left;
|
||||
width: 50%;
|
||||
margin-left: -50%;
|
||||
margin-top: var(--space-5);
|
||||
padding-top: 2.4em;
|
||||
box-sizing: border-box;
|
||||
max-width: none;
|
||||
}
|
||||
.personal-report-md-lead > .personal-report-chart-figure + :not(h4):not(.personal-report-chart-figure),
|
||||
.personal-report-md-section > .personal-report-chart-figure + :not(h4):not(.personal-report-chart-figure) {
|
||||
clear: both;
|
||||
}
|
||||
.personal-report-md-article .personal-report-chart-grid {
|
||||
margin: var(--space-5) 0 var(--space-6);
|
||||
}
|
||||
.personal-report-md-article .personal-report-chart-card h4 {
|
||||
margin: 0;
|
||||
font-size: var(--type-title-sm);
|
||||
font-weight: 500;
|
||||
}
|
||||
.personal-report-chart-card .personal-report-chart-figure {
|
||||
max-width: none;
|
||||
margin: var(--space-3) 0 0;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.personal-report-md-layout { grid-template-columns: 1fr; }
|
||||
@@ -4418,23 +4404,18 @@ input:not([type="radio"]):not([type="checkbox"]):not([class^="ant-"]):not([class
|
||||
.personal-report-narrative p { font-size: 9.6pt; line-height: 1.72; orphans: 3; widows: 3; }
|
||||
.personal-report-lead-grid { grid-template-columns: minmax(0, 1.04fr) minmax(64mm, .96fr); gap: 8mm; }
|
||||
.personal-report-chart-svg { max-width: none; margin-top: 3mm; }
|
||||
.personal-report-md-article .personal-report-chart-figure {
|
||||
float: none;
|
||||
.personal-report-md-article .personal-report-chart-card .personal-report-chart-figure {
|
||||
max-width: none;
|
||||
width: auto;
|
||||
max-width: 360px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin: 3mm 0 0;
|
||||
padding-top: 0;
|
||||
break-inside: avoid;
|
||||
}
|
||||
.personal-report-md-article h4.personal-report-chart-heading {
|
||||
float: none;
|
||||
width: auto;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 360px;
|
||||
.personal-report-md-article .personal-report-chart-card h4 {
|
||||
max-width: none;
|
||||
padding-inline: 0;
|
||||
}
|
||||
.personal-report-chart-card { break-inside: avoid; }
|
||||
.personal-report-chart-grid,
|
||||
.personal-report-chart-grid.is-single { grid-template-columns: 1fr; }
|
||||
.personal-report-chart-grid.is-single { max-width: 118mm; }
|
||||
|
||||
Reference in New Issue
Block a user