Add missing display: block to Current expiry Text

The original <div> was block-level by default. The replacement
<Text type="secondary"> renders inline, causing it to flow into
the preceding form field. Add display: "block" to match the
sibling New expiry element.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuneng-jiang 2026-03-23 22:10:00 -07:00
parent 6fc1937d33
commit 63525d1215

View file

@ -221,7 +221,7 @@ export function RegenerateKeyModal({ selectedToken, visible, onClose, onKeyUpdat
<Form.Item name="duration" label="Expire Key (eg: 30s, 30h, 30d)" style={{ marginTop: 32 }}>
<Input placeholder="" />
</Form.Item>
<Text type="secondary" style={{ fontSize: 12 }}>
<Text type="secondary" style={{ fontSize: 12, display: "block" }}>
Current expiry: {selectedToken?.expires ? new Date(selectedToken.expires).toLocaleString() : "Never"}
</Text>
{newExpiryTime && (