Skip to content

(fix) Improve location picker layout and alignment - #2041

Open
jaya6400 wants to merge 1 commit into
openmrs:mainfrom
jaya6400:fix/O3-6381-location-picker-heading-layout
Open

jaya6400 wants to merge 1 commit into
openmrs:mainfrom
jaya6400:fix/O3-6381-location-picker-heading-layout

Conversation

@jaya6400

@jaya6400 jaya6400 commented Dec 2, 2026 •

Copy link
Copy Markdown

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 is based on designs, which are linked or shown either in the Jira ticket or the description below. (See also: Styleguide)
  • My work includes tests or is validated by existing tests.
  • I have updated the esm-framework and storybook mocks (mock.tsx, mock-jest.tsx, and storybook mocks) to reflect any API changes.

Summary

This PR improves the layout and alignment of the location picker screen to provide a more consistent experience across desktop and mobile viewports.

Changes include:

  • Adjusted the location picker container and card layout to keep the Remember my location checkbox and Confirm button visible without unnecessary page scrolling.
  • Reduced the location results area's height and maintained independent scrolling for the results.
  • Center-aligned the Remember my location checkbox and Confirm button.
  • Improved footer spacing and added bottom padding to prevent the Confirm button from appearing too close to the bottom edge.

Screenshots

Desktop – 100% browser zoom

1

Mobile – Samsung Galaxy (browser device emulation)

2

Related Issue

Other

- Adjust the location picker card and results area to fit within the viewport without unnecessary page scrolling.
- Center-align the Remember my location checkbox and Confirm button.
- Improve footer spacing and add bottom padding for better visual balance.
@changeset-bot

changeset-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4c51551

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@greptile-apps

greptile-apps Bot commented Dec 2, 2026

Copy link
Copy Markdown

security Security Review

This PR appears safe to merge from a security standpoint.

What was checked
  • Read the full PR diff; it only changes two SCSS files for location picker layout, sizing, alignment, and scrolling.
  • No JavaScript or TypeScript was changed, so the post-login redirect check (isSafeReturnUrl), credential handling, and all login logic are untouched.
  • No attacker-reachable value, URL, or rendered content is affected by these style rules; nothing hides or overlays interactive elements in a way that could mislead a user clicking the Confirm button.

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5RetriggerView in Greptile

[Medium impact] The layout changes reach the login picker and other screens that share its results list.

Restore a scroll fallback before merging so users can always reach Confirm.

FindingsFix All in Claude Code

  1. P1 Confirm becomes unreachable ▶
Fix with agent prompt
### Issue 1
packages/apps/esm-login-app/src/location-picker/location-picker.scss:37
In short windows or at high browser zoom, `overflow: hidden` can clip the footer. The results list can shrink, but the welcome text, search field, checkbox, button, and padding still need a minimum height. When those exceed the viewport, users cannot scroll to Confirm and finish choosing their login location.

Allow vertical scrolling when the card cannot fit, while keeping the results list independently scrollable.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

  • The login picker fits its card and centers the footer actions.
  • Location results use a shorter list that can shrink and scroll.

Reviews (1) · Last reviewed commit: "(fix) Improve location picker layout and..." · Reviewed by Greptile

min-height: 0;
width: 100%;
box-sizing: border-box;
overflow: hidden;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Confirm becomes unreachable

In short windows or at high browser zoom, overflow: hidden can clip the footer. The results list can shrink, but the welcome text, search field, checkbox, button, and padding still need a minimum height. When those exceed the viewport, users cannot scroll to Confirm and finish choosing their login location.

Allow vertical scrolling when the card cannot fit, while keeping the results list independently scrollable.

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/apps/esm-login-app/src/location-picker/location-picker.scss
Line: 37

Comment:
**Confirm becomes unreachable**

In short windows or at high browser zoom, `overflow: hidden` can clip the footer. The results list can shrink, but the welcome text, search field, checkbox, button, and padding still need a minimum height. When those exceed the viewport, users cannot scroll to Confirm and finish choosing their login location.

Allow vertical scrolling when the card cannot fit, while keeping the results list independently scrollable.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code

@jaya6400

jaya6400 commented Dec 2, 2026

Copy link
Copy Markdown
Author

@denniskigen Please give it a review, its a easy CSS fix.

This branch has not been deployed

No deployments
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.

1 participant