[AGS] Battery: Improve design
This commit is contained in:
parent
bec7474793
commit
acca70d47f
@ -11,8 +11,9 @@ export const BatteryBox = () => {
|
||||
<box
|
||||
cssClasses={["battery-info"]}
|
||||
visible={bind(battery, "isBattery")}
|
||||
child={
|
||||
<box cssClasses={["battery-box"]}>
|
||||
hexpand={false}
|
||||
vexpand={false}
|
||||
>
|
||||
<image
|
||||
iconName={bind(battery, "batteryIconName")}
|
||||
tooltipText={bind(battery, "energyRate").as(er =>
|
||||
@ -30,8 +31,6 @@ export const BatteryBox = () => {
|
||||
label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)}
|
||||
/>
|
||||
</box>
|
||||
}
|
||||
></box>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user