UI: Fixed for safari and firefox
This commit is contained in:
parent
e1bac1bf79
commit
d89ebb1b9d
@ -65,6 +65,8 @@
|
|||||||
.tb-battery-level-box {
|
.tb-battery-level-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-height: 0;
|
||||||
|
max-height: 100%;
|
||||||
.tb-battery-level-rectangle {
|
.tb-battery-level-rectangle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@ -307,7 +307,7 @@ export class BatteryLevelWidgetComponent implements OnInit, OnDestroy, AfterView
|
|||||||
const newWidth = height * horizontalBatteryDimensions.shapeAspectRatio;
|
const newWidth = height * horizontalBatteryDimensions.shapeAspectRatio;
|
||||||
this.renderer.setStyle(this.batteryLevelRectangle.nativeElement, 'width', newWidth + 'px');
|
this.renderer.setStyle(this.batteryLevelRectangle.nativeElement, 'width', newWidth + 'px');
|
||||||
} else {
|
} else {
|
||||||
this.renderer.setStyle(this.batteryLevelRectangle.nativeElement, 'width', null);
|
this.renderer.setStyle(this.batteryLevelRectangle.nativeElement, 'width', width + 'px');
|
||||||
}
|
}
|
||||||
if (this.batteryLevelValue) {
|
if (this.batteryLevelValue) {
|
||||||
const ratios = horizontalBatteryDimensions.heightRatio;
|
const ratios = horizontalBatteryDimensions.heightRatio;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user