File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,18 @@ export default function App() {
149149 } ) ) ;
150150 } ;
151151
152+ useEffect ( ( ) => {
153+ if ( isOpen ) {
154+ document . body . style . overflow = 'hidden' ;
155+ } else {
156+ document . body . style . overflow = '' ;
157+ }
158+
159+ return ( ) => {
160+ document . body . style . overflow = '' ;
161+ } ;
162+ } , [ isOpen ] ) ;
163+
152164 return (
153165 < >
154166 < PendingDialogWithBeforeUnload isPending = { isPending } onClose = { ( ) => { } } />
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export default function Assignment({ courseData }: Props) {
6262 paddingLeft : '4px' ,
6363 paddingRight : '4px' ,
6464 clipPath : 'inset(0 0 0 0);' ,
65+ zIndex : '9999' ,
6566 } }
6667 >
6768 { calculateRemainingTime ( course . dueDate ) }
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export default function QuizTab({ courseData }: Props) {
6161 paddingBottom : '1px' ,
6262 paddingLeft : '4px' ,
6363 paddingRight : '4px' ,
64+ zIndex : '9999' ,
6465 } }
6566 >
6667 { calculateRemainingTime ( course . dueDate ) }
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ export default function Video({ courseData }: Props) {
128128 paddingBottom : '1px' ,
129129 paddingLeft : '4px' ,
130130 paddingRight : '4px' ,
131+ zIndex : '9999' ,
131132 } }
132133 >
133134 { calculateRemainingTimeByRange ( vods [ 0 ] . range ) }
You can’t perform that action at this time.
0 commit comments