Bigger secondary column width
This commit is contained in:
parent
7a997ebd8a
commit
e758df04a8
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue