From 8b50344e6c9bf005f6557ac22778c9a5ee38da67 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 3 Nov 2026 05:36:27 +0100 Subject: [PATCH] fix: close the folder drawer on tablets once a folder is picked --- components/mail/mail-app.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/mail/mail-app.tsx b/components/mail/mail-app.tsx index 895f89626..f46cf4ff7 100644 --- a/components/mail/mail-app.tsx +++ b/components/mail/mail-app.tsx @@ -3360,6 +3360,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { } if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } if (viewingClient) { // Keep an active search applied when switching folders (#553), unless @@ -3413,6 +3414,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { } if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } if (client) await fetchScheduledEmails(client); return; @@ -3432,6 +3434,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { } if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } const isSameView = captureViewToken(); @@ -3470,6 +3473,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { } if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } const isSameView = captureViewToken(); @@ -3509,6 +3513,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { // On tablet, show the list again if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } if (client) { @@ -3541,6 +3546,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { // On tablet, show the list again if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } if (client) { @@ -3569,6 +3575,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { // On tablet, show the list again if (isTablet) { setTabletListVisible(true); + setSidebarOpen(false); } if (isTogglingOff) {