mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix: subscription status badge overflow + inline password validation
- Status badge (e.g. 'ПРИОСТАНОВЛЕНА (НЕДОСТАТОЧНО СРЕДСТВ)') now constrained with max-w-[55%] to prevent overlapping tariff name - Password too short error shown inline under password field during registration instead of at the top of the page (invisible on mobile)
This commit is contained in:
@@ -720,6 +720,16 @@ export default function Login() {
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
/>
|
||||
{authMode === 'register' &&
|
||||
password.length > 0 &&
|
||||
password.length < 8 && (
|
||||
<p className="mt-1.5 text-xs text-error-400">
|
||||
{t(
|
||||
'auth.passwordTooShort',
|
||||
'Password must be at least 8 characters',
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{authMode === 'register' && (
|
||||
|
||||
Reference in New Issue
Block a user