Match Continue card column ratio + add Cmd+K omnibar focus
- 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.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user