Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/KeyPathAppKit/Services/Packs/Pack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,20 @@

/// Preferred width for Pack Detail presentation (window or sheet).
public var preferredDetailWidth: CGFloat {
// Table-style packs render MappingTableContent (Key / Description /
// Action / +Shift / +Ctrl), which needs the wide layout. When adding
// a table pack, add it here too or its detail sheet clips horizontally
// (Neovim Terminal shipped clipped at the 560 default before being
// listed).
let widePacks: Set = [
"com.keypath.pack.vim-navigation",
"com.keypath.pack.neovim-terminal",
"com.keypath.pack.window-snapping",
"com.keypath.pack.mission-control",
"com.keypath.pack.numpad-layer",
"com.keypath.pack.symbol-layer",
"com.keypath.pack.fun-layer",
"com.keypath.pack.caps-lock-to-escape",

Check warning on line 192 in Sources/KeyPathAppKit/Services/Packs/Pack.swift

View workflow job for this annotation

GitHub Actions / code-quality

Collection literals should not have trailing commas (trailing_comma)
]
if widePacks.contains(id) { return 760 }
if id == "com.keypath.pack.home-row-mods" { return 860 }
Expand Down
Loading