mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Refactor sidebar styling to remove duplicate code
This commit is contained in:
@@ -17,15 +17,10 @@ struct SceneNavigationView: View {
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
#if os(macOS)
|
||||
RegularSidebarContainerView()
|
||||
SidebarContainerView()
|
||||
.frame(minWidth: 100, idealWidth: 150, maxHeight: .infinity)
|
||||
#else
|
||||
if horizontalSizeClass == .compact {
|
||||
CompactSidebarContainerView()
|
||||
|
||||
} else {
|
||||
RegularSidebarContainerView()
|
||||
}
|
||||
SidebarContainerView()
|
||||
#endif
|
||||
|
||||
#if os(iOS)
|
||||
|
||||
Reference in New Issue
Block a user