Skip to content

Conversation

@PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jul 1, 2025

What?

The "Preview Sizes" button in the file upload UI was not showing up if:

  • crop and focalPoint were both false
  • No customUploadActions were provided
  • But image sizes were configured

Why?

This happened because UploadActions wasn’t rendered at all unless adjustments or custom actions were present.

How?

Update the conditional in StaticFileDetails to also render UploadActions when:

  • hasImageSizes is true and the document has a filename

Fixes #12832

@PatrikKozak PatrikKozak changed the title fix(ui): show preview sizes button when adjustments are disabled fix(ui): render preview sizes button when adjustments are disabled but imageSizes is defined Jul 1, 2025
@PatrikKozak PatrikKozak changed the title fix(ui): render preview sizes button when adjustments are disabled but imageSizes is defined fix(ui): render preview sizes button when adjustments are disabled but image sizes are defined Jul 1, 2025
@PatrikKozak PatrikKozak merged commit b1ae749 into main Jul 1, 2025
164 of 167 checks passed
@PatrikKozak PatrikKozak deleted the fix/upload-actions-preview-sizes branch July 1, 2025 14:44
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2025

🚀 This is included in version v3.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment