Skip to content

Commit a92c9e6

Browse files
committed
properly center the title text and tweak the styles
1 parent 52607a5 commit a92c9e6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/views/streaming/radio.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,12 @@ export default class KSTOView extends React.PureComponent<void, void, State> {
118118
}
119119

120120
const Title = () => {
121-
const style = {fontSize: Dimensions.get('window').height / 30}
122121
return (
123-
<View style={styles.container}>
124-
<Text selectable={true} style={[styles.heading, style]}>
122+
<View style={styles.titleWrapper}>
123+
<Text selectable={true} style={styles.heading}>
125124
St. Olaf College Radio
126125
</Text>
127-
<Text selectable={true} style={[styles.subHeading, style]}>
126+
<Text selectable={true} style={styles.subHeading}>
128127
KSTO 93.1 FM
129128
</Text>
130129
</View>
@@ -175,16 +174,22 @@ const styles = StyleSheet.create({
175174
borderColor: c.kstoSecondaryDark,
176175
borderWidth: 3,
177176
},
177+
titleWrapper: {
178+
alignItems: 'center',
179+
marginBottom: 20,
180+
},
178181
heading: {
179-
marginTop: 10,
180182
color: c.kstoPrimaryDark,
181-
fontWeight: '500',
183+
fontWeight: '600',
184+
fontSize: 28,
185+
textAlign: 'center',
182186
},
183187
subHeading: {
184188
marginTop: 5,
185-
marginBottom: 10,
186189
color: c.kstoPrimaryDark,
187190
fontWeight: '300',
191+
fontSize: 28,
192+
textAlign: 'center',
188193
},
189194
})
190195

0 commit comments

Comments
 (0)