fix: 🐛 Week component height and cap text

This commit is contained in:
Viktor Sarström 2021-11-30 13:34:15 +01:00
parent 7df15d36b1
commit 9874dda30e
2 changed files with 8 additions and 3 deletions

View File

@ -70,7 +70,12 @@ const LessonList = ({ lessons, header, lunch }: LessonListProps) => {
>{`${timeStart.slice(0, 5)}-${timeEnd.slice(0, 5)} ${
location === '' ? '' : '(' + location + ')'
} `}</Text>
<Text style={styles.lessonDescription} maxFontSizeMultiplier={1}>
<Text
style={styles.lessonDescription}
maxFontSizeMultiplier={1}
numberOfLines={2}
ellipsizeMode="tail"
>
{code?.toUpperCase() === 'LUNCH' ? lunch?.description : teacher}
</Text>
</View>
@ -178,7 +183,7 @@ const themedStyles = StyleService.create({
padding: 0,
},
item: {
height: 55,
height: 90,
backgroundColor: 'background-basic-color-2',
paddingHorizontal: 0,
borderRadius: 2,

View File

@ -1234,7 +1234,7 @@ export const timetable = (child: Skola24Child): TimetableEntry[] => {
category: 'Moderna språk, språkval',
blockName: '',
dayOfWeek: 2,
location: '302,Fjärr',
location: '302,Fjärr asd asdasd asdad aasdds',
teacher: 'DNi',
timeEnd: '09:50:00',
timeStart: '09:05:00',