fix(chart): модалка графика на весь экран — обёртка modal-content, размер под вьюпорт, крупные подписи

This commit is contained in:
Иван Овчинников
2026-11-22 00:33:47 +03:00
parent 569b94f799
commit d7b9d0fa2d
5 changed files with 34 additions and 14 deletions
+6
View File
@@ -9,6 +9,12 @@ body.modal-open { overflow: hidden; }
background: var(--surface); padding: 20px; border-radius: 16px 16px 0 0;
width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; animation: slideUp 0.25s;
}
/* График на весь экран — крупно, как в демо */
.modal-content.modal-fullscreen {
max-width: 100%; width: 100%; height: 100%; max-height: 100%;
border-radius: 0; padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }