fix: correct deposit section layout on appointment create page

Move switch to its own row; render amount field (wrapped in .field for a
proper bordered box) and wallet-charge button on a following aligned row.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-16 09:28:19 +03:30
co-authored by Claude Opus 4.8
parent a6c11a20bd
commit 54bdc73f37
+4 -4
View File
@@ -330,7 +330,6 @@ export default function AppointmentCreatePage() {
{/* بیعانه */} {/* بیعانه */}
<div style={sectionTitle}>بیعانه</div> <div style={sectionTitle}>بیعانه</div>
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 20, marginBottom: 12 }}>
<label style={{ display: 'inline-flex', alignItems: 'center', gap: 10, fontSize: 14, cursor: 'pointer' }}> <label style={{ display: 'inline-flex', alignItems: 'center', gap: 10, fontSize: 14, cursor: 'pointer' }}>
<span style={{ <span style={{
position: 'relative', width: 42, height: 22, borderRadius: 999, flexShrink: 0, position: 'relative', width: 42, height: 22, borderRadius: 999, flexShrink: 0,
@@ -346,13 +345,14 @@ export default function AppointmentCreatePage() {
بیعانه مورد نیاز است. بیعانه مورد نیاز است.
</label> </label>
{depositRequired && ( {depositRequired && (
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'flex-end', gap: 12, margin: '12px 0' }}>
<div style={{ width: 300, maxWidth: '100%' }}> <div style={{ width: 300, maxWidth: '100%' }}>
<label style={label}>مبلغ بیعانه (تومان)</label> <label style={label}>مبلغ بیعانه (تومان)</label>
<div style={{ marginTop: 6 }}><PriceInput value={depositRials} onChange={setDepositRials} /></div> <div className="field" style={{ marginTop: 6, height: 44 }}><PriceInput value={depositRials} onChange={setDepositRials} /></div>
</div>
<WalletChargeLink mobile={effectiveMobile} />
</div> </div>
)} )}
{depositRequired && <WalletChargeLink mobile={effectiveMobile} />}
</div>
<div style={{ maxWidth: 500 }}> <div style={{ maxWidth: 500 }}>
<label style={label}>انتخاب وضعیت</label> <label style={label}>انتخاب وضعیت</label>