Skip to content

Commit

Permalink
fix: 🐛 Week component height and cap text
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorlarsson committed Nov 30, 2021
1 parent 7df15d3 commit 9874dda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions apps/skolplattformen-sthlm/components/week.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -178,7 +183,7 @@ const themedStyles = StyleService.create({
padding: 0,
},
item: {
height: 55,
height: 90,
backgroundColor: 'background-basic-color-2',
paddingHorizontal: 0,
borderRadius: 2,
Expand Down
2 changes: 1 addition & 1 deletion libs/api-skolplattformen/lib/fakeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9874dda

Please sign in to comment.