fix(chart): модалка графика на весь экран — обёртка modal-content, размер под вьюпорт, крупные подписи
This commit is contained in:
@@ -49,6 +49,9 @@ import './js/modals/exercise-summary.js';
|
||||
loadState(); // state наполняется из localStorage только этим вызовом (как в app.js)
|
||||
drawExerciseProgress(document.getElementById('chart-barbell'), 'Жим штанги лёжа');
|
||||
drawExerciseProgress(document.getElementById('chart-dumbbell'), 'Жим гантелей на лавке 30');
|
||||
// ?modal=1 — сразу открыть полноэкранный график (для проверки модалки без клика)
|
||||
if (location.search.includes('modal=1')) window.CM.showChartDialog('Жим штанги лёжа');
|
||||
if (location.search.includes('summary=1')) window.EM.showSummaryDialog('Жим штанги лёжа');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user