mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 21:54:10 +01:00
More fixes for slideover mode
This commit is contained in:
parent
d399c18a82
commit
c3adb37da0
@ -36,7 +36,7 @@ struct AppView: View {
|
||||
}
|
||||
|
||||
var availableTabs: [Tab] {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone || horizontalSizeClass == .compact {
|
||||
return appAccountsManager.currentClient.isAuth ? iosTabs.tabs : Tab.loggedOutTab()
|
||||
}
|
||||
return appAccountsManager.currentClient.isAuth ? Tab.loggedInTabs() : Tab.loggedOutTab()
|
||||
|
@ -11,6 +11,7 @@ public struct StatusRowMediaPreviewView: View {
|
||||
@Environment(\.openWindow) private var openWindow
|
||||
@Environment(\.extraLeadingInset) private var extraLeadingInset: CGFloat
|
||||
@Environment(\.isCompact) private var isCompact: Bool
|
||||
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
|
||||
@Environment(SceneDelegate.self) private var sceneDelegate
|
||||
@Environment(UserPreferences.self) private var preferences
|
||||
@Environment(QuickLook.self) private var quickLook
|
||||
@ -39,7 +40,7 @@ public struct StatusRowMediaPreviewView: View {
|
||||
var sidebarWidth: CGFloat = 0
|
||||
var secondaryColumnWidth: CGFloat = 0
|
||||
let layoutPading: CGFloat = .layoutPadding * 2
|
||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
||||
if UIDevice.current.userInterfaceIdiom == .pad && horizontalSizeClass != .compact {
|
||||
sidebarWidth = .sidebarWidth
|
||||
if preferences.showiPadSecondaryColumn {
|
||||
secondaryColumnWidth = .secondaryColumnWidth
|
||||
|
Loading…
Reference in New Issue
Block a user