From ec1f3665ebabd9090d731261db875b35d7590579 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 16 Oct 2017 16:07:48 +0100 Subject: [PATCH] fix(GUI): don't display hyphen in drive selection entry if no size (#1778) Some drives, like usbboot USB devices, don't have a size associated with them, which results in the drive selection widget showing a hyphen with nothing at the side, which looks a bit weird. Signed-off-by: Juan Cruz Viotti --- .../drive-selector/templates/drive-selector-modal.tpl.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html index 137d32e1..deb52d98 100644 --- a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html +++ b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html @@ -15,8 +15,9 @@ width="25" height="30">
-

{{ drive.description }} - - {{ drive.size | closestUnit }} +

+ {{ drive.description }} - {{ drive.size | closestUnit }}

{{ drive.displayName }}