diff --git a/apps/friends-react-native/src/app/components/Timetable.tsx b/apps/friends-react-native/src/app/components/Timetable.tsx index d4e1ce1..8dc73f1 100644 --- a/apps/friends-react-native/src/app/components/Timetable.tsx +++ b/apps/friends-react-native/src/app/components/Timetable.tsx @@ -37,18 +37,24 @@ export const Timetable = memo(({ timetable, style, palette }: Props) => { {currentDayClasses.map((c) => { const { bg, fg } = timetableViewService.getLessonColor(c.lesson, palette); const place = c.place.trim(); + const top = DAY_LABEL_HEIGHT + ((c.startMinute - startHour * 60) / 60) * hourHeight - 1; + const cellHeight = ((c.endMinute - c.startMinute) / 60) * hourHeight; + + const classLines = (cellHeight - (place ? 16 : 0)) / 12; + return ( - {c.lesson.courseTitle} - {place && {place}} + + {c.lesson.courseTitle} + + {place && ( + + {place} + + )} ); })} @@ -130,7 +136,7 @@ const styles = StyleSheet.create({ labelFont: { fontSize: 12, textAlign: 'center' }, - classTitle: { fontSize: 10, fontWeight: '500', textAlign: 'center' }, + classTitle: { fontSize: 11, fontWeight: '500', textAlign: 'center' }, classPlace: { fontSize: 10, fontWeight: '700', textAlign: 'center' }, classCell: { padding: 4,