Skip to content

Commit 79bc1e6

Browse files
committed
Fix 'view course' link styles
1 parent 4bb7302 commit 79bc1e6

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

apps/src/templates/sectionProgress/SectionProgress.jsx

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,9 @@ const styles = {
4545
lessonSelectorContainer: {
4646
float: 'right',
4747
},
48-
viewCourseLink: {
49-
float: 'right',
50-
marginTop: 10,
51-
},
5248
viewCourseLinkBox: {
5349
width: '100%',
54-
height: 10,
55-
lineHeight: '10px',
56-
clear: 'both'
50+
textAlign: 'right',
5751
},
5852
};
5953

@@ -130,17 +124,15 @@ class SectionProgress extends Component {
130124

131125
return (
132126
<div>
133-
<div style={styles.viewCourseLinkBox}>
134-
<div style={styles.viewCourseLink}>
135-
{linkToOverview &&
136-
<SmallChevronLink
137-
link={linkToOverview}
138-
linkText={i18n.viewCourse()}
139-
isRtl={false}
140-
/>
141-
}
127+
{linkToOverview &&
128+
<div style={styles.viewCourseLinkBox}>
129+
<SmallChevronLink
130+
link={linkToOverview}
131+
linkText={i18n.viewCourse()}
132+
isRtl={false}
133+
/>
142134
</div>
143-
</div>
135+
}
144136
<div style={styles.selectorContainer}>
145137
<div style={styles.scriptSelectorContainer}>
146138
<div style={{...h3Style, ...styles.heading}}>

0 commit comments

Comments
 (0)