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-3915: The buttons in the refine-search overlay for the patient search button are partially hidden in a desktop layout #1311

Merged
merged 2 commits into from
Sep 15, 2024

Conversation

mccarthyaaron
Copy link
Contributor

@mccarthyaaron mccarthyaaron commented Sep 6, 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

This PR addresses an issue in the refine search overlay component under the patient search. On desktop the buttons for submitting or discarding the refined search are partially hidden.
This seems to be caused by the fact that the Overlay component here has a height of 100vh as well as a position from the top of 3rem. This causes it to immediately go below the viewport. The actual issue then seems to arise down the component hierarchy here with the refine seach dialog container. It is positioned bottom: 0 (which bottom is below the screen). Couple that with the justify-content: flex-end and you then end up with the the containers content partially hidden below the viewport.

the suggested solution here is to remove the height property from the Overlay component and give it bottom: 0. Such that it sticks to the bottom of the viewport.

Screenshots

refine-fix.mp4

Related Issue

https://openmrs.atlassian.net/browse/O3-3915

Copy link
Contributor

@brandones brandones left a comment

Choose a reason for hiding this comment

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

LGTM. Eventually we want to move the patient search over to using the workspace system. Thanks for the bug ticket & fix @mccarthyaaron .

@brandones brandones changed the title (fix)O3-3915: The buttons in the refine-search overlay for the patient search button are partially hidden in a desktop layout (fix) O3-3915: The buttons in the refine-search overlay for the patient search button are partially hidden in a desktop layout Sep 15, 2024
@brandones brandones merged commit 1e3f177 into openmrs:main Sep 15, 2024
6 checks passed
@mccarthyaaron
Copy link
Contributor Author

LGTM. Eventually we want to move the patient search over to using the workspace system. Thanks for the bug ticket & fix @mccarthyaaron .

You are welcome @brandones . Concerning moving it to using the workspace system is there any ongoing work or discussion about it? and if so where can one follow it from

@brandones
Copy link
Contributor

Great question @mccarthyaaron , I should have linked the ticket before. Here it is: https://openmrs.atlassian.net/browse/O3-3326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants