mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
style: shorten the name
This commit is contained in:
@@ -8,7 +8,7 @@ export const Battery = () => {
|
|||||||
<box cssClasses={["pill"]} visible={bind(battery, "isPresent")}>
|
<box cssClasses={["pill"]} visible={bind(battery, "isPresent")}>
|
||||||
<label
|
<label
|
||||||
label={bind(battery, "percentage").as(
|
label={bind(battery, "percentage").as(
|
||||||
(p) => `Bat: ${Math.floor(p * 100)}%`,
|
(p) => `B: ${Math.floor(p * 100)}%`,
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
|
@@ -12,7 +12,7 @@ export const Tailscale = () => {
|
|||||||
<label
|
<label
|
||||||
label={bind(tailscale).as((val) => {
|
label={bind(tailscale).as((val) => {
|
||||||
const data = val.split(" ");
|
const data = val.split(" ");
|
||||||
return "Home: " + data[data.length - 1];
|
return "H: " + data[data.length - 1];
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
|
Reference in New Issue
Block a user