diff --git a/src/pages/lesson-details.tsx b/src/pages/lesson-details.tsx index 37700ab..056e09b 100644 --- a/src/pages/lesson-details.tsx +++ b/src/pages/lesson-details.tsx @@ -315,7 +315,10 @@ const LessonDetail = () => { }} style={{ transformStyle: "preserve-3d", - perspective: "1000px" + perspective: "1000px", + aspectRatio: "1", + width: "100%", + display: "block" }} > {/* Front side - visible when present */} @@ -356,21 +359,98 @@ const LessonDetail = () => { width="100%" height="100%" bg={colorMode === "light" ? "gray.100" : "gray.600"} - borderRadius="md" + borderRadius="12px" align="center" justify="center" p={4} + overflow="hidden" style={{ backfaceVisibility: "hidden", transform: "rotateY(180deg)", - zIndex: student.present ? 0 : 1 + zIndex: student.present ? 0 : 1, + aspectRatio: "1" }} > - - - {student.name || student.lastName} + + + + + {/* Академическая шапочка */} + + + + + {/* Лицо студента */} + + + {/* Тело студента */} + + - + + {student.name || student.preferred_username} + + {t('journal.pl.lesson.notMarked')} diff --git a/src/pages/style.ts b/src/pages/style.ts index d245088..01d7319 100644 --- a/src/pages/style.ts +++ b/src/pages/style.ts @@ -22,8 +22,6 @@ export const StudentList = styled.ul` grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; width: 100%; - max-height: 600px; - overflow-y: auto; @media (max-width: 768px) { gap: 12px;