diff --git a/Shared/views/ContentView.swift b/Shared/views/ContentView.swift index 54fcfa9..111e7bb 100644 --- a/Shared/views/ContentView.swift +++ b/Shared/views/ContentView.swift @@ -212,7 +212,6 @@ struct ContentView: View { .contentShape(Rectangle()) } .tabViewStyle(.page) - .padding([.trailing, .leading]) .onChange(of: switchableViewSelectedIndex) { value in if value == 1 { currentSelectedHeaderViewBackDays = 30 @@ -288,7 +287,6 @@ struct ContentView: View { Color(theme.currentTheme.secondaryBGColor) ) .cornerRadius(10, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight]) - .padding() .padding([.top, .bottom], 5) Spacer() @@ -296,11 +294,13 @@ struct ContentView: View { .opacity(1 - headerOpacity) } .frame(height: headerHeight + 20) + + listView - .padding([.leading, .trailing]) .padding(.top, -25) } } + .padding() .padding(.bottom, 5) .background( theme.currentTheme.bg diff --git a/Shared/views/SmallRollUpHeaderView.swift b/Shared/views/SmallRollUpHeaderView.swift index e3e5d79..d07a4b5 100644 --- a/Shared/views/SmallRollUpHeaderView.swift +++ b/Shared/views/SmallRollUpHeaderView.swift @@ -78,13 +78,12 @@ struct SmallRollUpHeaderView: View { textView(forModel: model) .font(.title) .fontWeight(.bold) - .frame(width: 40, height: 40) .scaledToFill() .minimumScaleFactor(0.5) .lineLimit(1) .foregroundColor(Color(UIColor.white)) } - .padding([.leading, .trailing], 5) + .frame(maxWidth: .infinity, alignment: .center) } } }