mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
chore: auto-fix linting and formatting issues
This commit is contained in:
parent
aaa4b1a4c5
commit
6b3161dde5
@ -231,26 +231,27 @@ export default function ServerDetailOverview({ server_id }: { server_id: string
|
|||||||
) : null}
|
) : null}
|
||||||
</section>
|
</section>
|
||||||
<section className="flex flex-wrap gap-2 mt-1">
|
<section className="flex flex-wrap gap-2 mt-1">
|
||||||
{server?.state.temperatures && server?.state.temperatures.length > 0 && (
|
{server?.state.temperatures && server?.state.temperatures.length > 0 && (
|
||||||
<section className="flex flex-wrap gap-2 ml-1.5">
|
<section className="flex flex-wrap gap-2 ml-1.5">
|
||||||
<Accordion type="single" collapsible className="w-fit">
|
<Accordion type="single" collapsible className="w-fit">
|
||||||
<AccordionItem value="item-1" className="border-none">
|
<AccordionItem value="item-1" className="border-none">
|
||||||
<AccordionTrigger className="text-xs py-0 text-muted-foreground font-normal">
|
<AccordionTrigger className="text-xs py-0 text-muted-foreground font-normal">
|
||||||
{t("serverDetail.temperature")}
|
{t("serverDetail.temperature")}
|
||||||
</AccordionTrigger>
|
</AccordionTrigger>
|
||||||
<AccordionContent className="pb-0">
|
<AccordionContent className="pb-0">
|
||||||
<section className="flex items-start flex-wrap gap-2">
|
<section className="flex items-start flex-wrap gap-2">
|
||||||
{server?.state.temperatures.map((item, index) => (
|
{server?.state.temperatures.map((item, index) => (
|
||||||
<div className="text-xs flex items-center" key={index}>
|
<div className="text-xs flex items-center" key={index}>
|
||||||
<p className="font-semibold">{item.Name}</p>: {item.Temperature.toFixed(2)} °C
|
<p className="font-semibold">{item.Name}</p>: {item.Temperature.toFixed(2)}{" "}
|
||||||
</div>
|
°C
|
||||||
))}
|
</div>
|
||||||
</section>
|
))}
|
||||||
</AccordionContent>
|
</section>
|
||||||
</AccordionItem>
|
</AccordionContent>
|
||||||
</Accordion>
|
</AccordionItem>
|
||||||
</section>
|
</Accordion>
|
||||||
)}
|
</section>
|
||||||
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="flex flex-wrap gap-2 mt-1">
|
<section className="flex flex-wrap gap-2 mt-1">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user