fix: close the folder drawer on tablets once a folder is picked

This commit is contained in:
Linus Rath
2026-11-03 05:36:27 +01:00
parent cd685d41b3
commit 8b50344e6c
+7
View File
@@ -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) {