mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 19:39:22 +08:00
fix: 修复文本自动换行问题
This commit is contained in:
@@ -59,7 +59,7 @@ export const NodeCard = ({ node }: NodeCardProps) => {
|
||||
</div>
|
||||
</Link>
|
||||
</CardHeader>
|
||||
<CardContent className="flex-grow space-y-3 text-sm">
|
||||
<CardContent className="flex-grow space-y-3 text-sm text-nowrap">
|
||||
<div className="flex flex-wrap gap-1">
|
||||
<Tag tags={tagList} />
|
||||
</div>
|
||||
@@ -158,7 +158,7 @@ export const NodeCard = ({ node }: NodeCardProps) => {
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<div className="w-3/4 text-right text-nowrap">
|
||||
<div className="w-3/4 text-right">
|
||||
<div>
|
||||
<span>
|
||||
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}
|
||||
|
@@ -27,7 +27,7 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`grid grid-cols-10 text-center shadow-md gap-4 p-2 items-center rounded-lg ${
|
||||
className={`grid grid-cols-10 text-center shadow-md gap-4 p-2 text-nowrap items-center rounded-lg ${
|
||||
isOnline
|
||||
? ""
|
||||
: "striped-bg-red-translucent-diagonal ring-2 ring-red-500/50"
|
||||
@@ -38,7 +38,7 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
|
||||
<div className="ml-2 w-full">
|
||||
<div className="text-base font-bold">{node.name}</div>
|
||||
<Tag className="text-xs" tags={tagList} />
|
||||
<div className="flex text-xs text-nowrap">
|
||||
<div className="flex text-xs">
|
||||
<div className="flex">
|
||||
<span className="text-secondary-foreground">到期:</span>
|
||||
<div className="flex items-center gap-1">{expired_at}</div>
|
||||
@@ -93,7 +93,7 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
|
||||
<div>↓ {stats ? formatBytes(stats.network.down, true) : "N/A"}</div>
|
||||
</div>
|
||||
<div className="col-span-2">
|
||||
<div className="flex items-center justify-around text-nowrap">
|
||||
<div className="flex items-center justify-around">
|
||||
{node.traffic_limit !== 0 && isOnline && stats && (
|
||||
<div className="flex items-center justify-center w-1/4">
|
||||
<CircleProgress
|
||||
|
Reference in New Issue
Block a user