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

2870: POI filters: Button to only show currently open locations can be cut off #2879

Conversation

bahaaTuffaha
Copy link
Contributor

Short description

The toggle button is cut off due to long sentences from languages like French.

Proposed changes

  • Added a max-width to StyledText to leave some space to the toggle button.
  • Added alignItems: 'center' to Row style just to make the text,icon and toggle aliened vertically on the same level.

Side effects

None

Resolved issues

Fixes: #2870


Copy link
Contributor

@LeandraH LeandraH 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 the PR! It looks pretty good already but I think the button should ideally be in the same line as the icons under it. Maybe you can do something with flex positioning instead of a hard-coded width?

IMG_255E967AC9BF-1

native/src/components/PoiFiltersModal.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@LeandraH LeandraH left a comment

Choose a reason for hiding this comment

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

Nicely done, thank you! Tested in real iOS

Copy link
Member

@steffenkleinle steffenkleinle left a comment

Choose a reason for hiding this comment

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

Tested on android, nice solution! :)

…-only-show-currently-open-locations-can-be-cut-off
…-only-show-currently-open-locations-can-be-cut-off
@LeandraH
Copy link
Contributor

By the way, you can enable auto-merge so that you don't have to come back to the PR to merge it when the pipeline is finished :)

Copy link

codeclimate bot commented Aug 20, 2024

Code Climate has analyzed commit 83e54ca and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 73.9%.

View more on Code Climate.

@bahaaTuffaha bahaaTuffaha enabled auto-merge August 20, 2024 09:58
@bahaaTuffaha bahaaTuffaha merged commit bd707bc into main Aug 20, 2024
9 checks passed
@bahaaTuffaha bahaaTuffaha deleted the 2870-POI-filters-Button-to-only-show-currently-open-locations-can-be-cut-off branch August 20, 2024 10:00
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.

POI filters: Button to only show currently open locations can be cut off
3 participants