fix: correct className syntax for consistent styling in firearms and mod codes pages

This commit is contained in:
2026-04-07 01:28:34 +08:00
parent bad31c6653
commit a98902b08b
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -70,8 +70,7 @@ export default function FirearmsPage() {
<Link key={`mod-codes-${firearm.id}`} to={`/mod-codes?firearmId=${firearm.id}`}>
<Button type="link"></Button>
</Link>,
]}
>
]}>
<div className="flex flex-col gap-3">
<div className="flex items-center justify-between">
<Tag color="blue">{firearmTypeText[firearm.type]}</Tag>
@@ -80,7 +79,11 @@ export default function FirearmsPage() {
<strong></strong>
{firearm.level}
</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 || "暂无描述"}
</Typography.Paragraph>
</div>
+2 -2
View File
@@ -34,7 +34,7 @@ export default function ModCodesPage() {
return (
<>
<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>
{firearmId && (
@@ -59,7 +59,7 @@ export default function ModCodesPage() {
}}
>
<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>
{modification.code}
</Typography.Paragraph>