mirror of
https://github.com/balena-io/etcher.git
synced 2025-11-08 18:08:32 +00:00
Improve hover message when the drive is too small
Changelog-entry: Improve hover message when the drive is too small Change-type: patch
This commit is contained in:
@@ -81,13 +81,10 @@ export const compatibility = {
|
||||
} as const;
|
||||
|
||||
export const warning = {
|
||||
unrecommendedDriveSize: (
|
||||
image: { recommendedDriveSize: number },
|
||||
drive: { device: string; size: number },
|
||||
) => {
|
||||
tooSmall: (source: { size: number }, target: { size: number }) => {
|
||||
return outdent({ newline: ' ' })`
|
||||
This image recommends a ${prettyBytes(image.recommendedDriveSize)}
|
||||
drive, however ${drive.device} is only ${prettyBytes(drive.size)}.
|
||||
The selected source is ${prettyBytes(source.size - target.size)}
|
||||
larger than this drive.
|
||||
`;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user