The card window's sidebar-toggle move rightmost in its toolbar — the conventional macOS position for trailing-sidebar controls
Claude-Session: https://claude.ai/code/session_014PtZdPwqZuqEDLc6wZMtEy
This commit is contained in:
@@ -601,17 +601,18 @@ struct CardToolbarTests {
|
||||
return (body, raw, attachments, actions)
|
||||
}
|
||||
|
||||
@Test("The default set is the trio, Show Sidebar, and Delete Card — separated by a flexible space")
|
||||
@Test("The default set is the trio, Delete Card, and Show Sidebar — separated by a flexible space")
|
||||
func defaultsAreSeparatedFromDeleteCard() {
|
||||
// "Card window default: Edit Body · Raw Source · Add Attachment" joined by Show Sidebar (the
|
||||
// toolbar-toggle card) and now Delete Card, HIG's "apart from the creation-side defaults"
|
||||
// spelled as a literal `.flexibleSpace` between the two clusters — `BoardToolbar.defaultItems`'
|
||||
// own leading-spacer pattern, turned trailing here.
|
||||
// "Card window default: Edit Body · Raw Source · Add Attachment" joined by Delete Card (after
|
||||
// the sidebar Actions section retired), then Show Sidebar (the trailing-sidebar toggle, at the
|
||||
// rightmost position per macOS convention), with `.flexibleSpace` between the creation-side
|
||||
// defaults and the destructive/sidebar-control cluster — `BoardToolbar.defaultItems`' own
|
||||
// leading-spacer pattern, turned trailing here.
|
||||
#expect(CardToolbar.defaultItems == [
|
||||
.cardEditBody, .cardRawSource, .cardAddAttachment, .cardShowSidebar, .flexibleSpace, .cardDeleteCard,
|
||||
.cardEditBody, .cardRawSource, .cardAddAttachment, .flexibleSpace, .cardDeleteCard, .cardShowSidebar,
|
||||
])
|
||||
#expect(CardToolbar.defaultItems.filter { $0 != .flexibleSpace } == [
|
||||
.cardEditBody, .cardRawSource, .cardAddAttachment, .cardShowSidebar, .cardDeleteCard,
|
||||
.cardEditBody, .cardRawSource, .cardAddAttachment, .cardDeleteCard, .cardShowSidebar,
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user