File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ const Login: React.FC = () => {
6464 }
6565 }
6666 } , [ showPasswordField , showPasswordOnSeparateScreen ] ) ;
67+ useEffect ( ( ) => {
68+ document . body . classList . add ( 'hide-top-nav' ) ;
69+ return ( ) => {
70+ document . body . classList . remove ( 'hide-top-nav' ) ;
71+ } ;
72+ } , [ ] ) ;
6773
6874 const continueLogin = useCallback ( ( ) => {
6975 const currentUsername = usernameInputRef . current ?. value ?. trim ( ) ;
Original file line number Diff line number Diff line change 33@use ' @openmrs/esm-styleguide/src/vars' as * ;
44
55/* Hide OpenMRS top nav on login */
6- :global(#omrs-top-nav-app-container ) {
6+ :global(.hide-top-nav #omrs-top-nav-app-container ) {
77 display : none ;
88 height : 0 ;
99}
178178 display : flex ;
179179 flex-direction : row ;
180180 gap : 10rem ;
181+ max-width : 100vw ;
182+ max-height : 100vh ;
181183}
182184
183185.image {
You can’t perform that action at this time.
0 commit comments