Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) O3-2852: Fix the viewport size of the Start Visit form on tablet #1765

Merged
merged 4 commits into from May 8, 2024

Conversation

Madhu-mac
Copy link
Contributor

@Madhu-mac Madhu-mac commented Mar 29, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

Fixes the Start Visit form UI on the tablet viewport so that the form covers the entire vertical height of the viewport.

Screenshots

Before

Screenshot_20240330_032237

After

tablet

Related issue

https://openmrs.atlassian.net/issues/O3-2852

@Madhu-mac
Copy link
Contributor Author

Madhu-mac commented Mar 30, 2024

@denniskigen I Fixed this error. Can you review it..

@Vijaykv5
Copy link
Contributor

Vijaykv5 commented Apr 1, 2024

@Madhu-mac Kindly Add the ticket link associated with the issue.

@Madhu-mac
Copy link
Contributor Author

Madhu-mac commented Apr 1, 2024

@@ -46,7 +45,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
height: calc(100vh - 6rem);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Madhu-mac changing the height to 100vh breaks the UI on the desktop viewport. The correct values are:

  • var(--desktop-workspace-window-height) for desktop
  • var(--tablet-workspace-window-height) for tablet

As defined here

This is what the corresponding UI looks like following those changes:

Desktop

CleanShot 2024-05-09 at 1  54 56@2x

Tablet

CleanShot 2024-05-09 at 1  54 42@2x

@denniskigen denniskigen changed the title O3-2852 Tablet view Overlapping issue fixed in visit-form (fix) O3-2852: Fix the viewport size of the Start Visit form on tablet May 8, 2024
Copy link
Member

@denniskigen denniskigen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a stab at this, @Madhu-mac.

@denniskigen denniskigen merged commit 4637063 into openmrs:main May 8, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants