courrier multi account

This commit is contained in:
alma 2025-04-27 18:51:56 +02:00
parent e647499bb6
commit e4dbc6a5c9

View File

@ -618,8 +618,8 @@ export default function CourrierPage() {
<main className="w-full h-screen bg-black"> <main className="w-full h-screen bg-black">
<div className="w-full h-full px-4 pt-12 pb-4"> <div className="w-full h-full px-4 pt-12 pb-4">
<div className="flex h-full bg-carnet-bg"> <div className="flex h-full bg-carnet-bg">
{/* Sidebar - Force display without conditions */} {/* Sidebar - Make sure it's visible regardless of email selection */}
<div className="w-60 bg-white/95 backdrop-blur-sm border-r border-gray-100 flex flex-col" style={{display: "flex !important"}}> <div className="w-60 bg-white/95 backdrop-blur-sm border-r border-gray-100 flex flex-col md:flex" style={{display: "flex !important"}}>
{/* Courrier Title */} {/* Courrier Title */}
<div className="p-3 border-b border-gray-100"> <div className="p-3 border-b border-gray-100">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
@ -976,7 +976,7 @@ export default function CourrierPage() {
</div> </div>
{/* Main Content Area - conditionally show email list or detail view */} {/* Main Content Area - conditionally show email list or detail view */}
<div className="flex-1 flex flex-col overflow-hidden"> <div className="flex-1 flex flex-col overflow-hidden" style={{ maxWidth: 'calc(100% - 240px)' }}>
{/* Header bar with search */} {/* Header bar with search */}
<div className="p-2 border-b border-gray-100 bg-white flex items-center justify-between"> <div className="p-2 border-b border-gray-100 bg-white flex items-center justify-between">
<Button <Button
@ -1072,7 +1072,11 @@ export default function CourrierPage() {
) : selectedEmail ? ( ) : selectedEmail ? (
<EmailDetailView <EmailDetailView
email={selectedEmail} email={selectedEmail}
onBack={() => handleEmailSelect('')} onBack={() => {
handleEmailSelect('');
// Ensure sidebar stays visible
setSidebarOpen(true);
}}
onReply={handleReply} onReply={handleReply}
onReplyAll={handleReplyAll} onReplyAll={handleReplyAll}
onForward={handleForward} onForward={handleForward}