Bigger secondary column width

This commit is contained in:
Thomas Ricouard 2023-02-21 18:46:28 +01:00
parent 7a997ebd8a
commit e758df04a8
2 changed files with 2 additions and 3 deletions

View file

@ -149,7 +149,7 @@ struct IceCubesApp: App {
private var notificationsSecondaryColumn: some View {
NotificationsTab(popToRootTab: $popToRootTab, lockedType: nil)
.environment(\.isSecondaryColumn, true)
.frame(maxWidth: 360)
.frame(maxWidth: .secondaryColumnWidth)
.id(appAccountsManager.currentAccount.id)
}

View file

@ -38,12 +38,11 @@ public struct StatusRowMediaPreviewView: View {
let avatarColumnWidth = theme.avatarPosition == .leading ? AvatarView.Size.status.size.width + .statusColumnsSpacing : 0
var sidebarWidth: CGFloat = 0
var secondaryColumnWidth: CGFloat = 0
var layoutPading: CGFloat = .layoutPadding * 2
let layoutPading: CGFloat = .layoutPadding * 2
if UIDevice.current.userInterfaceIdiom == .pad {
sidebarWidth = .sidebarWidth
if preferences.showiPadSecondaryColumn {
secondaryColumnWidth = .secondaryColumnWidth
layoutPading = 0
}
}
return layoutPading + avatarColumnWidth + sidebarWidth + extraLeadingInset + secondaryColumnWidth