feat: enhance modification display with copy functionality and improved styling
This commit is contained in:
@@ -59,10 +59,19 @@ 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 }}>
|
<div className="flex items-center justify-between gap-2">
|
||||||
<strong>改枪码:</strong>
|
<span>
|
||||||
{modification.code}
|
<strong>改枪码:</strong>
|
||||||
</Typography.Paragraph>
|
<code className="bg-gray-400 px-2 py-1 rounded text-sm text-white">{modification.code}</code>
|
||||||
|
</span>
|
||||||
|
<Button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
onClick={() => navigator.clipboard.writeText(modification.code)}
|
||||||
|
>
|
||||||
|
复制
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Typography.Text>
|
<Typography.Text>
|
||||||
<strong>作者:</strong>
|
<strong>作者:</strong>
|
||||||
|
|||||||
Reference in New Issue
Block a user