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

Change empathize layout for mobile devices #445

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

annacv
Copy link
Contributor

@annacv annacv commented Feb 7, 2024

EMP-3460

Currently in the archetype for mobile devices, the query previews are shown in the pre-search state. However, once you focus on the search box there is no way to go back and see the query previews since the empathize is always taking the full height of the device.

Changes (only mobile):

  • Removed the x-layout-stack class when there is no query, so query previews are still shown below the predictive layer & user can scroll to its content.
  • Add spacing below the predictive layer, so the spacing between it & query previews is consistent (visually we have the same space between predictive as the one between each queries preview carousel).
  • Add the x-mt-8 in popular searches: this was sometimes a recurring change in setups, as the distance between history queries & popular searches block was fewer than between popular searches & top clicked carousel one.

@annacv annacv requested a review from a team as a code owner February 7, 2024 09:53
Copy link

github-actions bot commented Feb 7, 2024

Check PR 445 preview 👀

https://x.test.empathy.co/preview/445/index.html

@albertjcuac
Copy link
Contributor

Seems fine to me but maybe it could be good to add something to visually define the end of the empathize, like a border shadow.

@annacv
Copy link
Contributor Author

annacv commented Feb 8, 2024

Seems fine to me but maybe it could be good to add something to visually define the end of the empathize, like a border shadow.

Hi @albertjcuac I have added a bottom border (same as the one used in myHistory aside), as shadows are not being used in archetype

Copy link

github-actions bot commented Feb 8, 2024

Check PR 445 preview 👀

https://x.test.empathy.co/preview/445/index.html

@annacv annacv requested a review from albertjcuac February 8, 2024 13:05
Copy link
Contributor

@albertjcuac albertjcuac left a comment

Choose a reason for hiding this comment

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

nice!

@albertjcuac albertjcuac merged commit 5f99727 into main Feb 8, 2024
4 checks passed
@albertjcuac albertjcuac deleted the feature/EMP-3460-Change-layout-mobile branch February 8, 2024 14:34
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