style(admin): update card width classes from min-w to max-w on profile and settings pages
- replace `sm:min-w-3/5` with `lg:max-w-4/5` on all profile page cards - replace `min-w-3/5` with `w-full lg:max-w-4/5` on settings page cards
This commit is contained in:
@@ -239,7 +239,7 @@ const ProfilePage = ({ user: initialUser }) => {
|
|||||||
{activeTab === 'informations' && (
|
{activeTab === 'informations' && (
|
||||||
<Card
|
<Card
|
||||||
title="Informations personnelles"
|
title="Informations personnelles"
|
||||||
className="w-full sm:min-w-3/5"
|
className="w-full lg:max-w-4/5"
|
||||||
footer={
|
footer={
|
||||||
<div className="flex items-center justify-end gap-3">
|
<div className="flex items-center justify-end gap-3">
|
||||||
<Button
|
<Button
|
||||||
@@ -309,7 +309,7 @@ const ProfilePage = ({ user: initialUser }) => {
|
|||||||
{activeTab === 'securite' && (
|
{activeTab === 'securite' && (
|
||||||
<Card
|
<Card
|
||||||
title="Changer le mot de passe"
|
title="Changer le mot de passe"
|
||||||
className="w-full sm:min-w-3/5"
|
className="w-full lg:max-w-4/5"
|
||||||
footer={
|
footer={
|
||||||
<div className="flex items-center justify-end gap-3">
|
<div className="flex items-center justify-end gap-3">
|
||||||
<Button
|
<Button
|
||||||
@@ -377,7 +377,7 @@ const ProfilePage = ({ user: initialUser }) => {
|
|||||||
{activeTab === 'sessions' && (
|
{activeTab === 'sessions' && (
|
||||||
<Card
|
<Card
|
||||||
title="Sessions actives"
|
title="Sessions actives"
|
||||||
className="w-full sm:min-w-3/5"
|
className="w-full lg:max-w-4/5"
|
||||||
footer={
|
footer={
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
<Button
|
<Button
|
||||||
@@ -443,7 +443,7 @@ const ProfilePage = ({ user: initialUser }) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{activeTab === 'photo' && (
|
{activeTab === 'photo' && (
|
||||||
<Card title="Photo de profil" className="w-full sm:min-w-3/5">
|
<Card title="Photo de profil" className="w-full lg:max-w-4/5">
|
||||||
<p className="text-sm text-neutral-500 dark:text-neutral-400">
|
<p className="text-sm text-neutral-500 dark:text-neutral-400">
|
||||||
Téléchargez une nouvelle photo de profil. Taille max 5MB.
|
Téléchargez une nouvelle photo de profil. Taille max 5MB.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const SettingsPage = ({ appConfig = {} }) => {
|
|||||||
<TabNav tabs={TABS} activeTab={activeTab} onTabChange={setActiveTab} />
|
<TabNav tabs={TABS} activeTab={activeTab} onTabChange={setActiveTab} />
|
||||||
|
|
||||||
{activeTab === 'general' && (
|
{activeTab === 'general' && (
|
||||||
<Card title="Informations générales" className='min-w-3/5'>
|
<Card title="Informations générales" className='w-full lg:max-w-4/5'>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<Input
|
<Input
|
||||||
label="Nom du site"
|
label="Nom du site"
|
||||||
@@ -70,7 +70,7 @@ const SettingsPage = ({ appConfig = {} }) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{activeTab === 'appearance' && (
|
{activeTab === 'appearance' && (
|
||||||
<Card title="Thème" className='min-w-3/5'>
|
<Card title="Thème" className='w-full lg:max-w-4/5'>
|
||||||
<div className="max-w-xs">
|
<div className="max-w-xs">
|
||||||
<Select
|
<Select
|
||||||
label="Thème de l'interface"
|
label="Thème de l'interface"
|
||||||
|
|||||||
Reference in New Issue
Block a user