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 footer actions being rendered outside viewport in image editor on mobile devices #12813

Merged
merged 1 commit into from
May 16, 2024

Conversation

rossbearman
Copy link
Contributor

Description

Currently the footer actions (Cancel, Save, Reset) are rendered outside of the viewport when the FileUpload image editor is used on most mobile devices (inc. latest iOS and Android Chrome).

This is fixed by using 100dvh instead of 100vh/h-screen. Tailwind's h-[100dvh] is used instead of h-dvh to support backwards compatibility for people using custom themes on an older version of Tailwind, as mentioned in this comment.

Visual changes

image

Functional changes

  • Changes h-screen to h-[100dvh] on the image editor modal.

@danharrin danharrin added the bug Something isn't working label May 16, 2024
@danharrin danharrin added this to the v3 milestone May 16, 2024
@danharrin danharrin merged commit bdd7187 into filamentphp:3.x May 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants