courrier multi account restore compose

This commit is contained in:
alma 2025-04-27 22:18:24 +02:00
parent d9ebe3d6fd
commit d1c134da24

View File

@ -778,9 +778,9 @@ export default function CourrierPage() {
}}> }}>
<div> <div>
<Tabs defaultValue="imap" className="w-full"> <Tabs defaultValue="imap" className="w-full">
<TabsList className="grid w-full grid-cols-2 h-6 mb-0.5 bg-gray-200"> <TabsList className="grid w-full grid-cols-2 h-6 mb-0.5 bg-gray-100">
<TabsTrigger value="imap" className="text-xs h-5 data-[state=active]:bg-black data-[state=active]:text-white">IMAP Settings</TabsTrigger> <TabsTrigger value="imap" className="text-xs h-5 data-[state=active]:bg-blue-500 data-[state=active]:text-white">IMAP</TabsTrigger>
<TabsTrigger value="smtp" className="text-xs h-5 data-[state=active]:bg-black data-[state=active]:text-white">SMTP Settings</TabsTrigger> <TabsTrigger value="smtp" className="text-xs h-5 data-[state=active]:bg-blue-500 data-[state=active]:text-white">SMTP</TabsTrigger>
</TabsList> </TabsList>
<TabsContent value="imap" className="mt-0.5 space-y-0.5"> <TabsContent value="imap" className="mt-0.5 space-y-0.5">
@ -789,7 +789,7 @@ export default function CourrierPage() {
id="email" id="email"
name="email" name="email"
placeholder="email@example.com" placeholder="email@example.com"
className="h-7 text-xs bg-white border-gray-300 mb-0.5" className="h-7 text-xs bg-white border-gray-300 mb-0.5 text-gray-900"
required required
/> />
</div> </div>
@ -799,7 +799,7 @@ export default function CourrierPage() {
name="password" name="password"
type="password" type="password"
placeholder="•••••••••" placeholder="•••••••••"
className="h-7 text-xs bg-white border-gray-300 mb-0.5" className="h-7 text-xs bg-white border-gray-300 mb-0.5 text-gray-900"
required required
/> />
</div> </div>
@ -808,7 +808,7 @@ export default function CourrierPage() {
id="display_name" id="display_name"
name="display_name" name="display_name"
placeholder="John Doe" placeholder="John Doe"
className="h-7 text-xs bg-white border-gray-300 mb-0.5" className="h-7 text-xs bg-white border-gray-300 mb-0.5 text-gray-900"
/> />
</div> </div>
<div> <div>
@ -816,7 +816,7 @@ export default function CourrierPage() {
id="host" id="host"
name="host" name="host"
placeholder="imap.example.com" placeholder="imap.example.com"
className="h-7 text-xs bg-white border-gray-300 mb-0.5" className="h-7 text-xs bg-white border-gray-300 mb-0.5 text-gray-900"
required required
/> />
</div> </div>
@ -826,7 +826,7 @@ export default function CourrierPage() {
id="port" id="port"
name="port" name="port"
placeholder="993" placeholder="993"
className="h-7 text-xs bg-white border-gray-300" className="h-7 text-xs bg-white border-gray-300 text-gray-900"
defaultValue="993" defaultValue="993"
required required
/> />
@ -846,7 +846,7 @@ export default function CourrierPage() {
id="smtp_host" id="smtp_host"
name="smtp_host" name="smtp_host"
placeholder="smtp.example.com" placeholder="smtp.example.com"
className="h-7 text-xs bg-white border-gray-300 mb-0.5" className="h-7 text-xs bg-white border-gray-300 mb-0.5 text-gray-900"
/> />
</div> </div>
<div className="flex gap-1"> <div className="flex gap-1">
@ -855,7 +855,7 @@ export default function CourrierPage() {
id="smtp_port" id="smtp_port"
name="smtp_port" name="smtp_port"
placeholder="587" placeholder="587"
className="h-7 text-xs bg-white border-gray-300" className="h-7 text-xs bg-white border-gray-300 text-gray-900"
defaultValue="587" defaultValue="587"
/> />
</div> </div>
@ -875,7 +875,7 @@ export default function CourrierPage() {
<div className="flex gap-1 mt-1"> <div className="flex gap-1 mt-1">
<Button <Button
type="submit" type="submit"
className="flex-1 h-7 text-xs bg-blue-500 hover:bg-blue-600 text-white rounded-md" className="flex-1 h-6 text-xs bg-blue-500 hover:bg-blue-600 text-white rounded-md px-2 py-0"
disabled={loading} disabled={loading}
> >
{loading ? <Loader2 className="h-3 w-3 animate-spin mr-1" /> : null} {loading ? <Loader2 className="h-3 w-3 animate-spin mr-1" /> : null}
@ -883,7 +883,7 @@ export default function CourrierPage() {
</Button> </Button>
<Button <Button
type="button" type="button"
className="h-7 text-xs bg-black text-white hover:bg-gray-800 rounded-md" className="h-6 text-xs bg-gray-200 text-gray-800 hover:bg-gray-300 rounded-md px-2 py-0"
onClick={() => setShowAddAccountForm(false)} onClick={() => setShowAddAccountForm(false)}
> >
Cancel Cancel