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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user