feat: collapse empty viewer pane and hide placeholder in Pro mode

This commit is contained in:
Linus Rath
2026-05-22 12:19:34 +02:00
parent 2b1b06abd6
commit 4269d0589c
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -1973,7 +1973,7 @@ export default function Home() {
const isHorizontalMailLayout = mailLayout === 'horizontal' && !isMobile && !isTablet;
const hasViewerContent = showComposer || Boolean(conversationThread) || Boolean(selectedEmail);
const shouldCollapseListPane = (isTablet && !tabletListVisible) || (!isMobile && isFocusedMailLayout && hasViewerContent);
const shouldHideViewerPane = !isMobile && !hasViewerContent;
const shouldHideViewerPane = !isMobile && !hasViewerContent && (isEmbedded || isFocusedMailLayout);
const shouldHideHorizontalViewerPane = isHorizontalMailLayout && !hasViewerContent;
// Handle email selection with mobile view switching