Neah version mail design fix 11

This commit is contained in:
alma 2025-04-16 19:47:26 +02:00
parent 9ba33202d0
commit df33fec7d5

View File

@ -1175,25 +1175,6 @@ export default function MailPage() {
</nav> </nav>
); );
// Add debug component to help track state
const DebugInfo = () => {
if (process.env.NODE_ENV !== 'development') return null;
return (
<div className="fixed bottom-4 right-4 bg-black/80 text-white p-4 rounded-lg text-xs">
<div>Current view: {currentView}</div>
<div>Total emails: {emails.length}</div>
<div>Categories present: {
[...new Set(emails.map(e => e.folder))].join(', ')
}</div>
<div>Selected emails: {selectedEmails.length}</div>
<div>Flags present: {
[...new Set(emails.flatMap(e => e.flags || []))].join(', ')
}</div>
</div>
);
};
// Add attachment handling functions // Add attachment handling functions
const handleFileAttachment = async (e: React.ChangeEvent<HTMLInputElement>) => { const handleFileAttachment = async (e: React.ChangeEvent<HTMLInputElement>) => {
if (!e.target.files) return; if (!e.target.files) return;
@ -1649,9 +1630,6 @@ export default function MailPage() {
</div> </div>
</div> </div>
)} )}
{/* Add debug info in development */}
<DebugInfo />
</> </>
); );
} }