Skip to content

Commit c2da513

Browse files
authored
Merge pull request #2336 from StoDevX/course-description-styling
Tweak course description cells
2 parents bb5d8c3 + 0283f20 commit c2da513

File tree

1 file changed

+6
-8
lines changed
  • source/views/sis/course-search/detail

1 file changed

+6
-8
lines changed

source/views/sis/course-search/detail/index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

33
import React from 'react'
4-
import {StyleSheet} from 'react-native'
4+
import {StyleSheet, Text} from 'react-native'
55
import type {CourseType} from '../../../../lib/course-search'
66
import glamorous from 'glamorous-native'
77
import {Badge} from '../../../building-hours/detail/badge'
@@ -36,11 +36,6 @@ const SubHeader = glamorous.text({
3636
marginTop: 5,
3737
})
3838

39-
const CellText = glamorous.text({
40-
padding: 5,
41-
color: c.black,
42-
})
43-
4439
const styles = StyleSheet.create({
4540
chunk: {
4641
paddingVertical: 10,
@@ -123,8 +118,11 @@ function Description({course}: {course: CourseType}) {
123118
return course.description ? (
124119
<Section header="DESCRIPTION" sectionTintColor={c.sectionBgColor}>
125120
<Cell
126-
cellContentView={<CellText>{course.description[0]}</CellText>}
127-
style={styles.chunk}
121+
cellContentView={
122+
<Text selectable={true} style={styles.chunk}>
123+
{course.description[0]}
124+
</Text>
125+
}
128126
/>
129127
</Section>
130128
) : null

0 commit comments

Comments
 (0)