fix: restore analysis chart rendering

This commit is contained in:
OoO
2026-05-18 14:24:28 +08:00
parent 49f6b3ebd9
commit a6059b5377
6 changed files with 302 additions and 46 deletions

View File

@@ -881,7 +881,7 @@
height: 100% !important;
}
.chart-container.has-html-chart canvas {
.chart-container.chart-fallback-active canvas {
display: none !important;
}
@@ -1001,6 +1001,23 @@
.chart-container--md { height: 350px; }
.chart-container:not(.chart-fallback-active) .chart-fallback-bars,
.chart-container:not(.chart-fallback-active) .chart-fallback-list {
display: none !important;
}
.chart-container.chart-fallback-active .chart-fallback-list {
display: grid;
}
.chart-container.chart-fallback-active .chart-fallback-bars.is-vertical {
display: flex;
}
.chart-container.chart-fallback-active .chart-fallback-bars.is-horizontal {
display: grid;
}
.chart-responsive {
min-width: 0;
overflow: hidden;

View File

@@ -233,10 +233,11 @@
height: 300px;
}
.growth-analysis-page .ga-chart-card__body canvas {
display: block;
width: 100% !important;
height: 100% !important;
}
.growth-analysis-page .ga-chart-card__body.has-html-chart canvas {
.growth-analysis-page .ga-chart-card__body.chart-fallback-active canvas {
display: none !important;
}
.growth-analysis-page .ga-chart-fallback {
@@ -306,6 +307,19 @@
white-space: nowrap;
}
.growth-analysis-page .ga-chart-card__body:not(.chart-fallback-active) .ga-chart-fallback,
.growth-analysis-page .ga-chart-card__body:not(.chart-fallback-active) .ga-chart-snapshot {
display: none !important;
}
.growth-analysis-page .ga-chart-card__body.chart-fallback-active .ga-chart-fallback {
display: flex;
}
.growth-analysis-page .ga-chart-card__body.chart-fallback-active .ga-chart-snapshot {
display: grid;
}
@media (max-width: 640px) {
.growth-analysis-page .ga-page-head {
align-items: flex-start;