|
|
@ -14,12 +14,12 @@ export default function CustomNavBar({ title }: { title: string }) { |
|
|
|
<div className="relative bg-white h-[--navBarHeight] border-b border-[#D8D8D8]"> |
|
|
|
{/** 温度,水平仪 */} |
|
|
|
<div |
|
|
|
className="absolute h-[30px] w-full bg-white border border-[#D8D8D8] flex items-center gap-2 px-4" |
|
|
|
className="absolute h-[30px] w-full bg-white border border-[#D8D8D8] flex items-center gap-2 px-2" |
|
|
|
style={{ top: device.connected && showDetail ? '100%' : 0, transition: 'top 300ms' }} |
|
|
|
> |
|
|
|
<span className="flex-1">温度: {device.temperature}°C</span> |
|
|
|
<span className="flex-1">X轴倾斜: {device.inclinatorX}</span> |
|
|
|
<span className="flex-1">Y轴倾斜: {device.inclinatorY}</span> |
|
|
|
<span className="flex-1">温度: {device.temperature.toFixed(1)}°C</span> |
|
|
|
<span className="flex-1">X轴倾斜: {device.inclinatorX.toFixed(2)}</span> |
|
|
|
<span className="flex-1">Y轴倾斜: {device.inclinatorY.toFixed(2)}</span> |
|
|
|
</div> |
|
|
|
{/** 导航栏 */} |
|
|
|
<div className="absolute left-0 top-0 w-full h-full flex items-center px-3 bg-white"> |
|
|
|