Fix toolbar

This commit is contained in:
Thomas Ricouard 2024-07-22 08:28:42 +02:00
parent a3326c3fc2
commit be02b2ea76

View file

@ -15,6 +15,7 @@ struct ToolbarTab: ToolbarContent {
var body: some ToolbarContent {
if !isSecondaryColumn {
if horizontalSizeClass == .regular {
ToolbarItem(placement: .topBarLeading) {
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
Button {
@ -30,6 +31,7 @@ struct ToolbarTab: ToolbarContent {
}
}
}
}
statusEditorToolbarItem(routerPath: routerPath,
visibility: userPreferences.postVisibility)
if UIDevice.current.userInterfaceIdiom != .pad ||