From 1d09f5a623b9572f43c34703d1d6346a7aeeba1d Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Mon, 11 May 2026 15:41:25 +0200 Subject: [PATCH] feat: align Focused list preview with other layout previews --- components/settings/layout-settings.tsx | 36 ++++++++++++++----------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/components/settings/layout-settings.tsx b/components/settings/layout-settings.tsx index 4d694390..b71057e3 100644 --- a/components/settings/layout-settings.tsx +++ b/components/settings/layout-settings.tsx @@ -13,6 +13,12 @@ const MAIL_LAYOUT_PREVIEW_ROWS = [ { sender: 'Billing', subject: 'Invoice 1042', preview: 'Your receipt is attached.', selected: false }, ]; +const MAIL_LAYOUT_PREVIEW_ROWS_FOCUS = [ + ...MAIL_LAYOUT_PREVIEW_ROWS, + { sender: 'Sam', subject: 'Lunch?', preview: '', selected: false }, + { sender: 'Newsletter', subject: 'Weekly digest', preview: '', selected: false }, +]; + function MailLayoutPreview({ value, t, @@ -57,23 +63,21 @@ function MailLayoutPreview({ )} {value === 'focus' && ( -
-
- {MAIL_LAYOUT_PREVIEW_ROWS.map((row) => ( -
-
- {row.sender} - {row.subject} -
+
+ {MAIL_LAYOUT_PREVIEW_ROWS_FOCUS.map((row) => ( +
+
+ {row.sender} + {row.subject}
- ))} -
+
+ ))}
)}