diff --git a/IceCubesApp/App/Tabs/ToolbarTab.swift b/IceCubesApp/App/Tabs/ToolbarTab.swift index e28fdd17..2e8087b2 100644 --- a/IceCubesApp/App/Tabs/ToolbarTab.swift +++ b/IceCubesApp/App/Tabs/ToolbarTab.swift @@ -15,17 +15,19 @@ struct ToolbarTab: ToolbarContent { var body: some ToolbarContent { if !isSecondaryColumn { - ToolbarItem(placement: .topBarLeading) { - if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { - Button { - withAnimation { - userPreferences.isSidebarExpanded.toggle() - } - } label: { - if userPreferences.isSidebarExpanded { - Image(systemName: "sidebar.squares.left") - } else { - Image(systemName: "sidebar.left") + if horizontalSizeClass == .regular { + ToolbarItem(placement: .topBarLeading) { + if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { + Button { + withAnimation { + userPreferences.isSidebarExpanded.toggle() + } + } label: { + if userPreferences.isSidebarExpanded { + Image(systemName: "sidebar.squares.left") + } else { + Image(systemName: "sidebar.left") + } } } }