|
|
@ -2,7 +2,7 @@ import { cn } from "@core/utils/cn.ts"; |
|
|
import { |
|
|
import { |
|
|
CpuIcon, |
|
|
CpuIcon, |
|
|
Languages, |
|
|
Languages, |
|
|
LucideIcon, |
|
|
type LucideIcon, |
|
|
Palette, |
|
|
Palette, |
|
|
PenLine, |
|
|
PenLine, |
|
|
Search as SearchIcon, |
|
|
Search as SearchIcon, |
|
|
@ -11,7 +11,7 @@ import { |
|
|
import BatteryStatus from "./BatteryStatus.tsx"; |
|
|
import BatteryStatus from "./BatteryStatus.tsx"; |
|
|
import { Subtle } from "./UI/Typography/Subtle.tsx"; |
|
|
import { Subtle } from "./UI/Typography/Subtle.tsx"; |
|
|
import { Avatar } from "./UI/Avatar.tsx"; |
|
|
import { Avatar } from "./UI/Avatar.tsx"; |
|
|
import { DeviceMetrics } from "./types.ts"; |
|
|
import type { DeviceMetrics } from "./types.ts"; |
|
|
import { Button } from "./UI/Button.tsx"; |
|
|
import { Button } from "./UI/Button.tsx"; |
|
|
import React, { Fragment } from "react"; |
|
|
import React, { Fragment } from "react"; |
|
|
import { useTranslation } from "react-i18next"; |
|
|
import { useTranslation } from "react-i18next"; |
|
|
@ -110,11 +110,10 @@ export const DeviceInfoPanel = ({ |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div className="p-1"> |
|
|
<> |
|
|
<div className="flex flex-col"> |
|
|
|
|
|
<div |
|
|
<div |
|
|
className={cn( |
|
|
className={cn( |
|
|
"flex items-center gap-3 p-1", |
|
|
"flex items-center gap-3 p-1 flex-shrink-0", |
|
|
isCollapsed && "justify-center", |
|
|
isCollapsed && "justify-center", |
|
|
)} |
|
|
)} |
|
|
> |
|
|
> |
|
|
@ -127,7 +126,7 @@ export const DeviceInfoPanel = ({ |
|
|
<p |
|
|
<p |
|
|
className={cn( |
|
|
className={cn( |
|
|
"text-sm font-medium text-gray-800 dark:text-gray-200", |
|
|
"text-sm font-medium text-gray-800 dark:text-gray-200", |
|
|
"transition-opacity duration-300 ease-in-out", |
|
|
"transition-opacity duration-300 ease-in-out truncate", |
|
|
)} |
|
|
)} |
|
|
> |
|
|
> |
|
|
{user.longName} |
|
|
{user.longName} |
|
|
@ -136,7 +135,8 @@ export const DeviceInfoPanel = ({ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{!isCollapsed && ( |
|
|
{!isCollapsed && ( |
|
|
<div className="my-2 h-px bg-gray-200 dark:bg-gray-700"></div> |
|
|
<div className="my-2 h-px bg-gray-200 dark:bg-gray-700 flex-shrink-0"> |
|
|
|
|
|
</div> |
|
|
)} |
|
|
)} |
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
@ -173,7 +173,8 @@ export const DeviceInfoPanel = ({ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{!isCollapsed && ( |
|
|
{!isCollapsed && ( |
|
|
<div className="my-2 h-px bg-gray-200 dark:bg-gray-700"></div> |
|
|
<div className="my-2 h-px bg-gray-200 dark:bg-gray-700 flex-shrink-0"> |
|
|
|
|
|
</div> |
|
|
)} |
|
|
)} |
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
@ -232,9 +233,7 @@ export const DeviceInfoPanel = ({ |
|
|
</Button> |
|
|
</Button> |
|
|
); |
|
|
); |
|
|
})} |
|
|
})} |
|
|
{/* <Code>{import.meta.env.COMMIT_HASH}</Code> */} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</> |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|
|