From 22186bb8a47807ef754fcd10fcec33686a80ec22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sat, 9 May 2026 19:35:46 -0400 Subject: [PATCH] Match Continue card column ratio + add Cmd+K omnibar focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Continue card: switch from grid_cols(2) (50/50) to flex with a flex-1 history column and a fixed 240 px reading-list cover, matching the design's grid-template-columns: 1fr 240px. - Cmd+K (Ctrl+K on Windows/Linux) now aliases FocusAddressBar so the ⌘K affordance shown in Arc/Dia/Linear-style designs lands on the omnibar without disturbing the existing Cmd+L mapping. --- crates/ely_app/src/shell/chrome/home/recap.rs | 17 +++++++++++++---- crates/ely_app/src/shortcuts.rs | 2 ++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/crates/ely_app/src/shell/chrome/home/recap.rs b/crates/ely_app/src/shell/chrome/home/recap.rs index 7f7ce97..a50fcac 100644 --- a/crates/ely_app/src/shell/chrome/home/recap.rs +++ b/crates/ely_app/src/shell/chrome/home/recap.rs @@ -55,11 +55,20 @@ fn render_continue_card( .bg(rgba(CARD_BG)) .shadow(card_shadow()) .p(px(16.0)) - .grid() - .grid_cols(2) + .flex() .gap(px(16.0)) - .child(render_continue_history(recent_history, now, cx)) - .child(render_reading_list_cover(featured, cx)) + .child( + div() + .flex_1() + .min_w_0() + .child(render_continue_history(recent_history, now, cx)), + ) + .child( + div() + .w(px(240.0)) + .flex_shrink_0() + .child(render_reading_list_cover(featured, cx)), + ) .into_any_element() } diff --git a/crates/ely_app/src/shortcuts.rs b/crates/ely_app/src/shortcuts.rs index d64d895..3f0f9af 100644 --- a/crates/ely_app/src/shortcuts.rs +++ b/crates/ely_app/src/shortcuts.rs @@ -204,7 +204,9 @@ pub(crate) const SHORTCUT_BINDINGS: &[ShortcutBinding] = &[ shortcut(ShortcutAction::OpenSettings, ShortcutPlatform::Macos, "cmd-,"), shortcut(ShortcutAction::OpenSettings, ShortcutPlatform::WindowsLinux, "ctrl-,"), shortcut(ShortcutAction::FocusAddressBar, ShortcutPlatform::Macos, "cmd-l"), + shortcut(ShortcutAction::FocusAddressBar, ShortcutPlatform::Macos, "cmd-k"), shortcut(ShortcutAction::FocusAddressBar, ShortcutPlatform::WindowsLinux, "ctrl-l"), + shortcut(ShortcutAction::FocusAddressBar, ShortcutPlatform::WindowsLinux, "ctrl-k"), shortcut(ShortcutAction::CloseCurrentTab, ShortcutPlatform::Macos, "cmd-w"), shortcut(ShortcutAction::CloseCurrentTab, ShortcutPlatform::WindowsLinux, "ctrl-w"), shortcut(ShortcutAction::RestoreClosedTab, ShortcutPlatform::Macos, "cmd-shift-t"),