mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
fix(GUI): don't break up size number in drive selector (#1467)
We make the size number in the drive selector stay whole through the `word-break: keep-all` CSS property, ensuring that it doesn't partially overflow to the next line. See: https://github.com/resin-io/etcher/issues/1437 Changelog-Entry: Don't break up size numbers in the drive selector.
This commit is contained in:
parent
2e50ad802f
commit
dcb152aa00
@ -78,5 +78,9 @@
|
|||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: $palette-theme-light-soft-foreground;
|
color: $palette-theme-light-soft-foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.word-keep {
|
||||||
|
word-break: keep-all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,9 @@
|
|||||||
ng-dblclick="modal.selectDriveAndClose(drive)"
|
ng-dblclick="modal.selectDriveAndClose(drive)"
|
||||||
ng-click="modal.toggleDrive(drive)">
|
ng-click="modal.toggleDrive(drive)">
|
||||||
<div>
|
<div>
|
||||||
<h4 class="list-group-item-heading">{{ drive.description }} - {{ drive.size | gigabyte | number:1 }} GB</h4>
|
<h4 class="list-group-item-heading">{{ drive.description }} -
|
||||||
|
<span class="word-keep">{{ drive.size | gigabyte | number:1 }} GB</span>
|
||||||
|
</h4>
|
||||||
<p class="list-group-item-text">{{ drive.name }}</p>
|
<p class="list-group-item-text">{{ drive.name }}</p>
|
||||||
|
|
||||||
<footer class="list-group-item-footer">
|
<footer class="list-group-item-footer">
|
||||||
|
@ -6410,6 +6410,9 @@ body {
|
|||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #b3b3b3; }
|
color: #b3b3b3; }
|
||||||
|
|
||||||
|
.modal-drive-selector-modal .word-keep {
|
||||||
|
word-break: keep-all; }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2016 resin.io
|
* Copyright 2016 resin.io
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user