mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Bigger secondary column width
This commit is contained in:
parent
7a997ebd8a
commit
e758df04a8
2 changed files with 2 additions and 3 deletions
|
@ -149,7 +149,7 @@ struct IceCubesApp: App {
|
||||||
private var notificationsSecondaryColumn: some View {
|
private var notificationsSecondaryColumn: some View {
|
||||||
NotificationsTab(popToRootTab: $popToRootTab, lockedType: nil)
|
NotificationsTab(popToRootTab: $popToRootTab, lockedType: nil)
|
||||||
.environment(\.isSecondaryColumn, true)
|
.environment(\.isSecondaryColumn, true)
|
||||||
.frame(maxWidth: 360)
|
.frame(maxWidth: .secondaryColumnWidth)
|
||||||
.id(appAccountsManager.currentAccount.id)
|
.id(appAccountsManager.currentAccount.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,12 +38,11 @@ public struct StatusRowMediaPreviewView: View {
|
||||||
let avatarColumnWidth = theme.avatarPosition == .leading ? AvatarView.Size.status.size.width + .statusColumnsSpacing : 0
|
let avatarColumnWidth = theme.avatarPosition == .leading ? AvatarView.Size.status.size.width + .statusColumnsSpacing : 0
|
||||||
var sidebarWidth: CGFloat = 0
|
var sidebarWidth: CGFloat = 0
|
||||||
var secondaryColumnWidth: CGFloat = 0
|
var secondaryColumnWidth: CGFloat = 0
|
||||||
var layoutPading: CGFloat = .layoutPadding * 2
|
let layoutPading: CGFloat = .layoutPadding * 2
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
if UIDevice.current.userInterfaceIdiom == .pad {
|
||||||
sidebarWidth = .sidebarWidth
|
sidebarWidth = .sidebarWidth
|
||||||
if preferences.showiPadSecondaryColumn {
|
if preferences.showiPadSecondaryColumn {
|
||||||
secondaryColumnWidth = .secondaryColumnWidth
|
secondaryColumnWidth = .secondaryColumnWidth
|
||||||
layoutPading = 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return layoutPading + avatarColumnWidth + sidebarWidth + extraLeadingInset + secondaryColumnWidth
|
return layoutPading + avatarColumnWidth + sidebarWidth + extraLeadingInset + secondaryColumnWidth
|
||||||
|
|
Loading…
Reference in a new issue