feat(ui): Update input components and enhance card minimum width for better layout

This commit is contained in:
web@ppanel 2025-02-14 15:49:34 +07:00
parent 574b043be6
commit 8a02310752
3 changed files with 6 additions and 6 deletions

View File

@ -299,14 +299,14 @@ export default function Page() {
</p> </p>
</TableCell> </TableCell>
<TableCell className='text-right'> <TableCell className='text-right'>
<Textarea <EnhancedInput
defaultValue={data?.config?.platform_config?.phone_number ?? ''} value={data?.config?.platform_config?.phone_number ?? ''}
onBlur={(e) => onValueBlur={(value) =>
updateConfig('config', { updateConfig('config', {
...data?.config, ...data?.config,
platform_config: { platform_config: {
...data?.config?.platform_config, ...data?.config?.platform_config,
phone_number: e.target.value, phone_number: value,
}, },
}) })
} }

View File

@ -34,7 +34,7 @@ export default function ChangePassword() {
} }
return ( return (
<Card> <Card className='min-w-80'>
<CardHeader className='bg-muted/50'> <CardHeader className='bg-muted/50'>
<CardTitle className='flex items-center justify-between'> <CardTitle className='flex items-center justify-between'>
{t('accountSettings')} {t('accountSettings')}

View File

@ -39,7 +39,7 @@ export default function NotifySettings() {
} }
return ( return (
<Card className='min-w-60'> <Card className='min-w-80'>
<CardHeader className='bg-muted/50'> <CardHeader className='bg-muted/50'>
<CardTitle className='flex items-center justify-between'> <CardTitle className='flex items-center justify-between'>
{t('notify.notificationSettings')} {t('notify.notificationSettings')}