fix(app): use .unified instead of .unifiedCompact toolbar style
.unifiedCompact is a genuinely shorter toolbar height, not "unified minus the title" — that's what made the toolbar look slim and likely squeezed the custom navigation item too. .unified(showsTitle: false) hides the native title without changing the toolbar's height.
This commit is contained in:
@@ -40,7 +40,9 @@ struct OutpostApp: App {
|
|||||||
// the same collection/document name, it visibly duplicated, with the
|
// the same collection/document name, it visibly duplicated, with the
|
||||||
// system back button sandwiched between the two. `.navigationTitle`
|
// system back button sandwiched between the two. `.navigationTitle`
|
||||||
// stays set (for the Window menu / Mission Control), just hidden here.
|
// stays set (for the Window menu / Mission Control), just hidden here.
|
||||||
.windowToolbarStyle(.unifiedCompact(showsTitle: false))
|
// `.unified` (not `.unifiedCompact`) keeps the toolbar at normal
|
||||||
|
// height — compact is a shorter style, not merely "unified minus title".
|
||||||
|
.windowToolbarStyle(.unified(showsTitle: false))
|
||||||
.commands {
|
.commands {
|
||||||
CommandGroup(replacing: .appInfo) {
|
CommandGroup(replacing: .appInfo) {
|
||||||
Button("About Outpost") {
|
Button("About Outpost") {
|
||||||
|
|||||||
Reference in New Issue
Block a user