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(web): render failed upload buttons correctly on mobile #9601

Merged
merged 2 commits into from
May 20, 2024

Conversation

eric-barch
Copy link
Contributor

Fixes #9055.

Before → After

The buttons were overflowing down because their container is set to h-full and its closest parent with a defined height is 400px:

I fixed it by setting the max height of the row with the thumbnail, progress/status bar, and failed upload buttons to 70px:

I think hardcoding this value is okay because the thumbnail is already hardcoded to a height of 65px plus 2px padding on all sides, and I believe everything in that row is intended to be the same height as the thumbnail.

I also made some minor changes to the Tailwind for the buttons. The borders in the last two screenshots were just for debugging and are not present in this PR. Let me know of any feedback.

@eric-barch eric-barch changed the title fix(web): Failed upload buttons render correctly on mobile fix(web): render failed upload buttons correctly on mobile May 19, 2024
@alextran1502 alextran1502 merged commit 4353153 into immich-app:main May 20, 2024
22 of 24 checks passed
@eric-barch eric-barch deleted the failed-upload-layout branch May 20, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload layout on mobile broken
3 participants