Skip to content

Conversation

@kalpovskii
Copy link
Member

@kalpovskii kalpovskii commented Aug 7, 2025

Closes: https://trello.com/c/VAUm1iZX

  • Changed snackbar location from "bottom" to "center"

I moved the Snackbar from the bottom to the center of the screen to prevent it from being hidden behind the mobile keyboard. Previously, the default bottom positioning caused visibility issues. The new "center" placement ensures messages remain clearly visible

If you have alternative suggestions for handling this issue, please let me know!

UPDATE:

  • Update the bottom property to use dvh, calc(10dvh + var(--v-layout-bottom, 0px) + env(safe-area-inset-bottom, 0px)). This ensures the element's position correctly adapts to the dynamic mobile viewport
  • Improved snackbar visibility in light theme with secondary color
image

@kalpovskii kalpovskii requested a review from a team as a code owner August 7, 2025 20:10
@vercel
Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
adamant-im Ready Ready Preview Comment Sep 9, 2025 6:06pm

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

Deployed to https://msg-adamant-pr-843.surge.sh 🚀

@S-FrontendDev
Copy link
Member

i don't like this decision

can you try css for fix?

@S-FrontendDev S-FrontendDev changed the title 🐛 chore: change snackbar location from bottom to center Bug: Snackbars are not visible when keyboard is opened Sep 9, 2025
@dev-adamant-im
Copy link
Member

@kalpovskii
@S-FrontendDev

Please verify that solution works.

When the keyboard is open, position it at the top.
Otherwise, draw it at the bottom by default. Does this solution work?

Ideally, it should be above the keyboard at the bottom.
But even if it’s positioned at the top, the solution doesn’t work. I tested it on iOS and Xiaomi.
I tested the branch https://adamant-glzvu7iw4-adamant-team.vercel.app/ after merging dev.

For snackbar in light theme: background-color: secondary2 (#f5f5f5)

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.

[Bug] Snackbars are not visible when keyboard is opened

6 participants