mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
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 <jv@jviotti.com>
This commit is contained in:
parent
444072db13
commit
ec1f3665eb
@ -15,8 +15,9 @@
|
|||||||
width="25"
|
width="25"
|
||||||
height="30">
|
height="30">
|
||||||
<div class="list-group-item-section list-group-item-section-expanded">
|
<div class="list-group-item-section list-group-item-section-expanded">
|
||||||
<h4 class="list-group-item-heading">{{ drive.description }} -
|
<h4 class="list-group-item-heading">
|
||||||
<span class="word-keep">{{ drive.size | closestUnit }}</span>
|
{{ drive.description }} <span class="word-keep"
|
||||||
|
ng-show="drive.size">- {{ drive.size | closestUnit }}</span>
|
||||||
</h4>
|
</h4>
|
||||||
<p class="list-group-item-text">{{ drive.displayName }}</p>
|
<p class="list-group-item-text">{{ drive.displayName }}</p>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user