mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-06 21:50:07 +00:00
fix: update text wrapping in ServerCard and ServerCardInline components for improved readability
This commit is contained in:
@@ -62,7 +62,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
|||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="relative flex flex-col">
|
<div className="relative flex flex-col">
|
||||||
<p className={cn("break-all font-bold tracking-tight", showFlag ? "text-xs " : "text-sm")}>{name}</p>
|
<p className={cn("break-normal font-bold tracking-tight", showFlag ? "text-xs " : "text-sm")}>{name}</p>
|
||||||
<div
|
<div
|
||||||
className={cn("hidden lg:block", {
|
className={cn("hidden lg:block", {
|
||||||
"lg:hidden": fixedTopServerName,
|
"lg:hidden": fixedTopServerName,
|
||||||
@@ -173,7 +173,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
|||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="relative flex flex-col">
|
<div className="relative flex flex-col">
|
||||||
<p className={cn("break-all font-bold tracking-tight max-w-[108px]", showFlag ? "text-xs" : "text-sm")}>{name}</p>
|
<p className={cn("break-normal font-bold tracking-tight max-w-[108px]", showFlag ? "text-xs" : "text-sm")}>{name}</p>
|
||||||
<div
|
<div
|
||||||
className={cn("hidden lg:block", {
|
className={cn("hidden lg:block", {
|
||||||
"lg:hidden": fixedTopServerName,
|
"lg:hidden": fixedTopServerName,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function ServerCardInline({ now, serverInfo }: { now: number; ser
|
|||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="relative w-28 flex flex-col">
|
<div className="relative w-28 flex flex-col">
|
||||||
<p className={cn("break-all font-bold tracking-tight", showFlag ? "text-xs " : "text-sm")}>{name}</p>
|
<p className={cn("break-normal font-bold tracking-tight", showFlag ? "text-xs " : "text-sm")}>{name}</p>
|
||||||
{parsedData?.billingDataMod && <BillingInfo parsedData={parsedData} />}
|
{parsedData?.billingDataMod && <BillingInfo parsedData={parsedData} />}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -132,7 +132,7 @@ export default function ServerCardInline({ now, serverInfo }: { now: number; ser
|
|||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="relative flex flex-col">
|
<div className="relative flex flex-col">
|
||||||
<p className={cn("break-all font-bold w-28 tracking-tight", showFlag ? "text-xs" : "text-sm")}>{name}</p>
|
<p className={cn("break-normal font-bold w-28 tracking-tight", showFlag ? "text-xs" : "text-sm")}>{name}</p>
|
||||||
{parsedData?.billingDataMod && <BillingInfo parsedData={parsedData} />}
|
{parsedData?.billingDataMod && <BillingInfo parsedData={parsedData} />}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user