Skip to content

Commit

Permalink
Fixed wide banners from derailing whole header (mlemgroup#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeShirley authored Sep 10, 2023
1 parent 08f6060 commit 3eac027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mlem/Views/Tabs/Feeds/Components/Sidebar Header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct CommunitySidebarHeader: View {
shouldExpand: false,
fixedSize: CGSize(width: UIScreen.main.bounds.width, height: 200),
contentMode: .fill
)
).frame(width: UIScreen.main.bounds.width)
}
}
VStack {
Expand Down Expand Up @@ -93,7 +93,7 @@ struct SidebarHeaderPreview: PreviewProvider {
title: "TestCommunityWithLongName",
subtitle: "@[email protected]",
avatarSubtext: .constant("Created 3 days ago"),
bannerURL: URL(string: "https://picsum.photos/seed/mlem-banner/200/300"),
bannerURL: URL(string: "https://picsum.photos/seed/mlem-banner/2001/300"),
avatarUrl: URL(string: "https://picsum.photos/seed/mlem-avatar/200"),
label1: "Label 1",
label2: "Label 2"
Expand Down

0 comments on commit 3eac027

Please sign in to comment.