Skip to content

Commit

Permalink
fixup! Feat(web): Attachment image preview object fit #DS-1005
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Oct 24, 2023
1 parent 3654d15 commit e3cb3c2
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 @@ -265,7 +265,7 @@ class FileUploader extends BaseComponent {
const AttachmentSvgIcon = item?.querySelector('svg');
const AttachmentPreviewImage = snippet.querySelector('.FileUploaderAttachment__image');
const isFileImg = file.type.includes('image');
const itemImageObjectFit = (item?.querySelector('.FileUploaderAttachment__image img') as HTMLElement).dataset
const itemImageObjectFit = (item?.querySelector('.FileUploaderAttachment__image img') as HTMLElement)?.dataset
?.spiritImageObjectFit;

if (hasImagePreview && isFileImg) {
Expand Down

0 comments on commit e3cb3c2

Please sign in to comment.