mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-25 15:25:01 +03:00
style(clients): put Traffic Reset and Auto renewal on one row
The renewal block took a full-width column, pushing Traffic Reset onto its own line. Each now gets a half-width column like the other fields, with its follow-up inputs stacked under it.
This commit is contained in:
@@ -991,18 +991,10 @@ export default function ClientFormModal({
|
|||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={24}>
|
</Row>
|
||||||
<ClientRenewalFields
|
|
||||||
active={open}
|
<Row gutter={16}>
|
||||||
delayedStart={delayedStart}
|
<Col xs={24} md={12}>
|
||||||
expiryTime={
|
|
||||||
delayedStart ? -86400000 * (delayedDays || 0) : expiryDate || 0
|
|
||||||
}
|
|
||||||
resetCount={client?.traffic?.resetCount || 0}
|
|
||||||
setExpiry={(expiry) => methods.setValue('expiryDate', expiry)}
|
|
||||||
/>
|
|
||||||
</Col>
|
|
||||||
<Col xs={12} md={6}>
|
|
||||||
<FormField
|
<FormField
|
||||||
name="trafficReset"
|
name="trafficReset"
|
||||||
label={t('pages.inbounds.periodicTrafficResetTitle')}
|
label={t('pages.inbounds.periodicTrafficResetTitle')}
|
||||||
@@ -1014,9 +1006,7 @@ export default function ClientFormModal({
|
|||||||
}))}
|
}))}
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
</Col>
|
{trafficReset === 'monthly' && (
|
||||||
{trafficReset === 'monthly' && (
|
|
||||||
<Col xs={12} md={6}>
|
|
||||||
<FormField
|
<FormField
|
||||||
name="trafficResetDay"
|
name="trafficResetDay"
|
||||||
label={t('pages.inbounds.periodicTrafficResetDay')}
|
label={t('pages.inbounds.periodicTrafficResetDay')}
|
||||||
@@ -1024,8 +1014,19 @@ export default function ClientFormModal({
|
|||||||
>
|
>
|
||||||
<InputNumber min={1} max={31} style={{ width: '100%' }} />
|
<InputNumber min={1} max={31} style={{ width: '100%' }} />
|
||||||
</FormField>
|
</FormField>
|
||||||
</Col>
|
)}
|
||||||
)}
|
</Col>
|
||||||
|
<Col xs={24} md={12}>
|
||||||
|
<ClientRenewalFields
|
||||||
|
active={open}
|
||||||
|
delayedStart={delayedStart}
|
||||||
|
expiryTime={
|
||||||
|
delayedStart ? -86400000 * (delayedDays || 0) : expiryDate || 0
|
||||||
|
}
|
||||||
|
resetCount={client?.traffic?.resetCount || 0}
|
||||||
|
setExpiry={(expiry) => methods.setValue('expiryDate', expiry)}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
|
|||||||
Reference in New Issue
Block a user