Skip to content

Commit

Permalink
fixup! Fix(web): Recalculate FileUploader image preview by crop values
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Nov 2, 2023
1 parent 39a2e87 commit 51e0965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/js/FileUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const DEFAULT_ERROR_MESSAGES = {
errorMaxUploadedFiles: 'You have exceeded the number of files allowed in the queue',
errorFileNotSupported: 'is not a supported file. Please ensure you are uploading a supported file format.',
};
const IMAGE_PREVIEW_HEIGHT = 54; // px; @see: css class `.FileUploaderAttachment__image in _FileUploaderAttachment.scss`
const IMAGE_PREVIEW_HEIGHT = 54; // px; @see: CSS class `.FileUploaderAttachment__image in _FileUploaderAttachment.scss`
const IMAGE_PREVIEW_BASE64_MAX_WIDTH = 500; // px

export interface FileMetadata {
Expand Down

0 comments on commit 51e0965

Please sign in to comment.