mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51: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")}>
|
||||
<label
|
||||
label={bind(battery, "percentage").as(
|
||||
(p) => `Bat: ${Math.floor(p * 100)}%`,
|
||||
(p) => `B: ${Math.floor(p * 100)}%`,
|
||||
)}
|
||||
/>
|
||||
</box>
|
||||
|
@@ -12,7 +12,7 @@ export const Tailscale = () => {
|
||||
<label
|
||||
label={bind(tailscale).as((val) => {
|
||||
const data = val.split(" ");
|
||||
return "Home: " + data[data.length - 1];
|
||||
return "H: " + data[data.length - 1];
|
||||
})}
|
||||
/>
|
||||
</box>
|
||||
|
Reference in New Issue
Block a user