mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-23 00:40:59 +00:00
Fix account selector on iPad
This commit is contained in:
parent
451cc7a4ac
commit
c21272f641
6 changed files with 8 additions and 8 deletions
|
@ -23,7 +23,7 @@ struct SideBarView<Content: View>: View {
|
|||
accountCreationEnabled: false,
|
||||
avatarSize: .status)
|
||||
}
|
||||
.frame(width: 70, height: 60)
|
||||
.frame(width: 80, height: 60)
|
||||
.background(selectedTab == .profile ? theme.secondaryBackgroundColor : .clear)
|
||||
ForEach(tabs) { tab in
|
||||
Button {
|
||||
|
@ -41,12 +41,12 @@ struct SideBarView<Content: View>: View {
|
|||
.frame(width: 24, height: 24)
|
||||
.foregroundColor(tab == selectedTab ? theme.tintColor : .gray)
|
||||
}
|
||||
.frame(width: 70, height: 50)
|
||||
.frame(width: 80, height: 50)
|
||||
.background(tab == selectedTab ? theme.secondaryBackgroundColor : .clear)
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
.frame(width: 70)
|
||||
.frame(width: 80)
|
||||
.background(.clear)
|
||||
Divider()
|
||||
.edgesIgnoringSafeArea(.top)
|
||||
|
|
|
@ -22,7 +22,7 @@ struct ExploreTab: View {
|
|||
.toolbar {
|
||||
statusEditorToolbarItem(routeurPath: routeurPath,
|
||||
visibility: preferences.serverPreferences?.postVisibility ?? .pub)
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
if UIDevice.current.userInterfaceIdiom != .pad {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
AppAccountsSelectorView(routeurPath: routeurPath)
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ struct MessagesTab: View {
|
|||
.withAppRouteur()
|
||||
.withSheetDestinations(sheetDestinations: $routeurPath.presentedSheet)
|
||||
.toolbar {
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
if UIDevice.current.userInterfaceIdiom != .pad {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
AppAccountsSelectorView(routeurPath: routeurPath)
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ struct NotificationsTab: View {
|
|||
.toolbar {
|
||||
statusEditorToolbarItem(routeurPath: routeurPath,
|
||||
visibility: userPreferences.serverPreferences?.postVisibility ?? .pub)
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
if UIDevice.current.userInterfaceIdiom != .pad {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
AppAccountsSelectorView(routeurPath: routeurPath)
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ struct TimelineTab: View {
|
|||
}
|
||||
}
|
||||
if client.isAuth {
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
if UIDevice.current.userInterfaceIdiom != .pad {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
AppAccountsSelectorView(routeurPath: routeurPath)
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public struct AppAccountsSelectorView: View {
|
|||
|
||||
public var body: some View {
|
||||
Group {
|
||||
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
||||
labelView
|
||||
.contextMenu {
|
||||
menuView
|
||||
|
|
Loading…
Reference in a new issue