@ampath/esm-login-app 8.0.0-next.13 → 8.0.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"}],"version":"8.0.0-next.13"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"}],"version":"8.0.0-next.14"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampath/esm-login-app",
3
- "version": "8.0.0-next.13",
3
+ "version": "8.0.0-next.14",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The login microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/esm-login-app.js",
@@ -64,6 +64,12 @@ const Login: React.FC = () => {
64
64
  }
65
65
  }
66
66
  }, [showPasswordField, showPasswordOnSeparateScreen]);
67
+ useEffect(() => {
68
+ document.body.classList.add('hide-top-nav');
69
+ return () => {
70
+ document.body.classList.remove('hide-top-nav');
71
+ };
72
+ }, []);
67
73
 
68
74
  const continueLogin = useCallback(() => {
69
75
  const currentUsername = usernameInputRef.current?.value?.trim();
@@ -3,7 +3,7 @@
3
3
  @use '@openmrs/esm-styleguide/src/vars' as *;
4
4
 
5
5
  /* Hide OpenMRS top nav on login */
6
- :global(#omrs-top-nav-app-container) {
6
+ :global(.hide-top-nav #omrs-top-nav-app-container) {
7
7
  display: none;
8
8
  height: 0;
9
9
  }
@@ -178,6 +178,8 @@
178
178
  display: flex;
179
179
  flex-direction: row;
180
180
  gap: 10rem;
181
+ max-width: 100vw;
182
+ max-height: 100vh;
181
183
  }
182
184
 
183
185
  .image {