fix: correct className syntax for consistent styling in firearms and mod codes pages
This commit is contained in:
@@ -70,8 +70,7 @@ export default function FirearmsPage() {
|
|||||||
<Link key={`mod-codes-${firearm.id}`} to={`/mod-codes?firearmId=${firearm.id}`}>
|
<Link key={`mod-codes-${firearm.id}`} to={`/mod-codes?firearmId=${firearm.id}`}>
|
||||||
<Button type="link">查看改枪码</Button>
|
<Button type="link">查看改枪码</Button>
|
||||||
</Link>,
|
</Link>,
|
||||||
]}
|
]}>
|
||||||
>
|
|
||||||
<div className="flex flex-col gap-3">
|
<div className="flex flex-col gap-3">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<Tag color="blue">{firearmTypeText[firearm.type]}</Tag>
|
<Tag color="blue">{firearmTypeText[firearm.type]}</Tag>
|
||||||
@@ -80,7 +79,11 @@ export default function FirearmsPage() {
|
|||||||
<strong>武器输出等级:</strong>
|
<strong>武器输出等级:</strong>
|
||||||
{firearm.level}
|
{firearm.level}
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<Typography.Paragraph style={{ marginBottom: 0 }} type="secondary" ellipsis={{ rows: 3 }}>
|
<Typography.Paragraph
|
||||||
|
style={{ marginBottom: 0 }}
|
||||||
|
type="secondary"
|
||||||
|
ellipsis={{ rows: 3 }}
|
||||||
|
className="whitespace-pre-line">
|
||||||
{firearm.review || "暂无描述"}
|
{firearm.review || "暂无描述"}
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default function ModCodesPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="mb-4 flex items-center justify-between gap-4">
|
<div className="mb-4 flex items-center justify-between gap-4">
|
||||||
<Typography.Title level={4} className="!mb-0">
|
<Typography.Title level={4} className="mb-0!">
|
||||||
改枪码列表
|
改枪码列表
|
||||||
</Typography.Title>
|
</Typography.Title>
|
||||||
{firearmId && (
|
{firearmId && (
|
||||||
@@ -59,7 +59,7 @@ export default function ModCodesPage() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col gap-3">
|
<div className="flex flex-col gap-3">
|
||||||
<Typography.Paragraph className="!mb-0" copyable={{ text: modification.code }}>
|
<Typography.Paragraph className="mb-0!" copyable={{ text: modification.code }}>
|
||||||
<strong>改枪码:</strong>
|
<strong>改枪码:</strong>
|
||||||
{modification.code}
|
{modification.code}
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
|
|||||||
Reference in New Issue
Block a user