From 8fa9a72d61d0d764217dcbbcb79c216d6c08c71b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 3 Nov 2026 05:32:34 +0100 Subject: [PATCH] fix: keep the new folder form's buttons on screen on small phones and show counter names on touch --- components/settings/folder-settings.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/settings/folder-settings.tsx b/components/settings/folder-settings.tsx index 8d75b72dc..19aa2a4d5 100644 --- a/components/settings/folder-settings.tsx +++ b/components/settings/folder-settings.tsx @@ -518,11 +518,11 @@ export function FolderSettings() { const parentName = parentId ? ownMailboxes.find(m => m.id === parentId)?.name : null; return (
-
+
{parentName && ( {t('subfolder_of', { name: parentName })} @@ -542,7 +542,7 @@ export function FolderSettings() { } }} placeholder={parentId ? t('subfolder_name') : t('new_folder_name')} - className="flex-1 px-2 py-1 text-sm rounded border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-hidden" + className="flex-1 min-w-0 px-2 py-1 text-sm rounded border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-hidden" autoFocus disabled={isLoading} /> @@ -592,7 +592,7 @@ export function FolderSettings() { if (e.key === 'Enter') handleRename(mb.id); if (e.key === 'Escape') cancelEdit(); }} - className="flex-1 px-2 py-1 text-sm rounded border border-border bg-background text-foreground focus:outline-hidden" + className="flex-1 min-w-0 px-2 py-1 text-sm rounded border border-border bg-background text-foreground focus:outline-hidden" autoFocus disabled={isLoading} /> @@ -733,7 +733,7 @@ export function FolderSettings() { value={folderCountModes?.[mb.id] ?? ''} onChange={(value) => setCountMode(mb.id, value)} ariaLabel={t('count_mode', { name: mb.name })} - className="px-1.5 py-0.5 text-xs max-w-[9rem]" + className="px-1.5 py-0.5 text-xs max-w-[9rem] pointer-coarse:max-w-[12rem]" options={countModeOptions} /> {mb.myRights?.mayCreateChild && (