diff --git a/includes/modules/CourseAuthor/CourseAuthor.jsx b/includes/modules/CourseAuthor/CourseAuthor.jsx index 4359f4b..80bcb2b 100644 --- a/includes/modules/CourseAuthor/CourseAuthor.jsx +++ b/includes/modules/CourseAuthor/CourseAuthor.jsx @@ -67,6 +67,14 @@ class CourseAuthor extends Component { }, ]); + // remove default padding below avatar and name + additionalCss.push([ + { + selector: `${wrapper} a`, + declaration: `padding: 0`, + }, + ]) + if (avatar_size) { additionalCss.push([ { @@ -189,6 +197,15 @@ class CourseAuthor extends Component { ]); } + if( props.avatar_border_radius ) { + additionalCss.push([ + { + selector: img_selector, + declaration: `border-radius: ${props.avatar_border_radius}` + }, + ]); + } + return additionalCss; } @@ -196,7 +213,7 @@ class CourseAuthor extends Component { //conditionally render if (props.profile_picture === "on") { return ( -
+