Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/renderless/src/file-upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const properFileSize =

if (file.size <= userMin * 1024) {
Modal.message({
message: `${t(constants.EDM.SIZE, { minSize: api.formatFileSize(Number(userMin), ' KB'), sizeUnit: '' })}`,
message: `${t(constants.EDM.SIZE, { minSize: api.formatFileSize(Number(userMin), 'KB'), sizeUnit: '' })}`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change corrects the formatting of the file size unit in the warning message by removing an unnecessary space between the number and the unit 'KB'. This ensures consistency in the display format.

status: 'warning'
})

Expand Down
Loading