From 3d76fe6d751ebe8c52ba2be9e8eb39f5c4d6cf66 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:43:48 +0200 Subject: [PATCH] fix: focused mode expanding to the right of the screen #156 --- app/[locale]/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index f6f5bda5..fedce6ba 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -1209,11 +1209,12 @@ export default function Home() { "max-md:flex-1 max-md:border-r-0", isMobile && activeView !== "list" && "max-md:hidden", // Tablet/Desktop: fixed width with collapse animation - "md:flex-shrink-0 md:shadow-sm", + shouldHideViewerPane ? "md:flex-1 md:border-r-0" : "md:flex-shrink-0", + "md:shadow-sm", !isResizing && "transition-all duration-200 ease-out", shouldCollapseListPane && "md:w-0 md:opacity-0 md:overflow-hidden md:border-r-0" )} - style={!isMobile && !shouldCollapseListPane ? { width: emailListWidth } : undefined} + style={!isMobile && !shouldCollapseListPane && !shouldHideViewerPane ? { width: emailListWidth } : undefined} > {/* Mobile Header for List View */}