Prevent billing toggles from wrapping
Some checks are pending
CI / checks (push) Waiting to run

This commit is contained in:
Tero Halla-aho 2025-12-21 13:21:13 +02:00
parent e211550569
commit 34b429c50f

View file

@ -224,8 +224,8 @@ export default function ProfilePage() {
{billingMessage ? <p style={{ color: 'green', margin: 0 }}>{billingMessage}</p> : null} {billingMessage ? <p style={{ color: 'green', margin: 0 }}>{billingMessage}</p> : null}
{billingError ? <p style={{ color: 'red', margin: 0 }}>{billingError}</p> : null} {billingError ? <p style={{ color: 'red', margin: 0 }}>{billingError}</p> : null}
<form onSubmit={onSaveBilling} style={{ display: 'grid', gap: 14 }}> <form onSubmit={onSaveBilling} style={{ display: 'grid', gap: 14 }}>
<label className="amenity-option" style={{ maxWidth: 520, alignItems: 'center' }}> <label className="amenity-option" style={{ maxWidth: 520, alignItems: 'center', flexWrap: 'nowrap' }}>
<div className="amenity-option-meta" style={{ fontWeight: 600 }}> <div className="amenity-option-meta" style={{ fontWeight: 600, flex: 1, minWidth: 0 }}>
<span aria-hidden className="amenity-emoji">💸</span> <span aria-hidden className="amenity-emoji">💸</span>
<span className="amenity-name">{t('billingEnableLabel')}</span> <span className="amenity-name">{t('billingEnableLabel')}</span>
</div> </div>
@ -233,7 +233,7 @@ export default function ProfilePage() {
type="checkbox" type="checkbox"
checked={billingEnabled} checked={billingEnabled}
onChange={(e) => setBillingEnabled(e.target.checked)} onChange={(e) => setBillingEnabled(e.target.checked)}
style={{ width: 22, height: 22 }} style={{ width: 22, height: 22, flexShrink: 0 }}
/> />
</label> </label>
{billingEnabled ? ( {billingEnabled ? (
@ -247,8 +247,8 @@ export default function ProfilePage() {
{t('billingIbanLabel')} {t('billingIbanLabel')}
<input value={billingIban} onChange={(e) => setBillingIban(e.target.value)} placeholder="FI00 1234 5600 0007 85" /> <input value={billingIban} onChange={(e) => setBillingIban(e.target.value)} placeholder="FI00 1234 5600 0007 85" />
</label> </label>
<label className="amenity-option" style={{ maxWidth: 520, alignItems: 'center' }}> <label className="amenity-option" style={{ maxWidth: 520, alignItems: 'center', flexWrap: 'nowrap' }}>
<div className="amenity-option-meta" style={{ fontWeight: 600 }}> <div className="amenity-option-meta" style={{ fontWeight: 600, flex: 1, minWidth: 0 }}>
<span aria-hidden className="amenity-emoji">🧾</span> <span aria-hidden className="amenity-emoji">🧾</span>
<span className="amenity-name">{t('billingIncludeVat')}</span> <span className="amenity-name">{t('billingIncludeVat')}</span>
</div> </div>
@ -256,7 +256,7 @@ export default function ProfilePage() {
type="checkbox" type="checkbox"
checked={billingIncludeVatLine} checked={billingIncludeVatLine}
onChange={(e) => setBillingIncludeVatLine(e.target.checked)} onChange={(e) => setBillingIncludeVatLine(e.target.checked)}
style={{ width: 22, height: 22 }} style={{ width: 22, height: 22, flexShrink: 0 }}
/> />
</label> </label>
</div> </div>