File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PrerequisiteTree from "./PrerequisiteTree.jsx" ;
3+
34// import {model} from '/src/model.js';
45
56export default function CourseView ( { course } ) {
@@ -49,12 +50,14 @@ export default function CourseView({ course }) {
4950 < p className = "text-lg text-slate-700 leading-7" > Here would be some reviews of the course...</ p >
5051 </ div >
5152
53+
5254 { /* Prerequisite Graph Tree Section */ }
5355 < div style = { { display : 'flex' , flexDirection : 'column' , marginBottom : '20px' } } >
5456 < h3 style = { { fontFamily : 'Courier New, monospace' , fontSize : '24px' } } > Prerequisite Graph Tree</ h3 >
5557 { /* Placeholder for graph tree */ }
5658 < PrerequisiteTree />
5759 </ div >
60+
5861 </ div >
5962 ) ;
6063}
Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ function ListView(props) {
5353 { course . description . length > 150 && (
5454 < span
5555 className = "text-blue-500 cursor-pointer"
56- onClick = { ( ) => toggleReadMore ( course . code ) }
56+ onClick = { ( e ) => {
57+ e . stopPropagation ( ) ; // Prevent the event from bubbling up.
58+ toggleReadMore ( course . code ) ;
59+ } }
5760 >
5861 { readMoreState [ course . code ]
5962 ?
You can’t perform that action at this time.
0 commit comments