@@ -5,10 +5,10 @@ import { useCourseOverviewQuery } from '../../generated/graphql';
55import moment from 'moment' ;
66
77const overviewStyle =
8- 'flex flex-col m-auto bg-green w-11/12 md:w-10/12 lg:w-9/12 xl:w-7/12 mt-8 h-1/3 md :h-2 /4 lg:h-2/3 xl:h-3/4 ' ;
9- const headerStyle =
10- 'flex bg-green shadow-md p-4 justify-center text-white text-md sm:text-lg md:text-xl' ;
11- const historyStyle = 'flex flex-row flex-wrap justify-start bg-white w-full h-full overflow-scroll' ;
8+ 'flex flex-col m-auto bg-green w-11/12 md:w-10/12 lg:w-9/12 xl:w-7/12 mt-8 h-1/2 lg :h-3 /4 px-2 pb-2 ' ;
9+
10+ const historyStyle =
11+ 'flex flex-row flex-wrap justify-start bg-white w-full overflow-scroll h-6/7 ' ;
1212
1313const Overview : React . FC = ( ) => {
1414 const courseId = Number ( useParams ( ) . courseId ) ;
@@ -26,18 +26,18 @@ const Overview: React.FC = () => {
2626
2727 console . log ( 'history: ' , history ) ;
2828 return (
29- < div >
29+ < div className = "h-screen" >
3030 < div className = { overviewStyle } >
31- < article className = 'flex flex-col justify-center p-2 h-full' >
32- < p className = 'm-auto text-xl text-white pb-2' > Attendance</ p >
31+ < article className = 'flex flex-col justify-center h-full' >
32+ < p className = 'm-auto text-xl text-white pb-2 h-8 flex ' > Attendance</ p >
3333 < section className = { historyStyle } >
3434 { ! ! sessions &&
3535 sessions . map ( ( session ) => {
3636 if ( session ) {
3737 const date = new Date ( Number ( session . createdAt ) ) ;
3838 const UTCdate = date . toUTCString ( ) ;
3939 return (
40- < div className = 'w-26 p-2 md: w-32 text-center border-2 border-black m-1 hover:bg-green-xlight' >
40+ < div className = 'h-20 p-2 w-32 text-center border-2 border-black m-1 hover:bg-green-xlight' >
4141 < Link to = { `/homepage/classes/${ courseId } /${ session . id } ` } >
4242 < div >
4343 < h5 className = 'text-lg sm:text-xl' >
0 commit comments