mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Fix for misaligned badge in post list (#230)
This commit is contained in:
parent
f256996161
commit
f3178626d9
@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- [Mac] Updated the URL and minimum version of the WriteFreely Swift package.
|
||||
- [Mac] Upgraded the Sparkle package to v2.
|
||||
- [Mac] The app now prompts you to reach out to our user forums if it detects a crash.
|
||||
- [iOS] The post editor now scrolls in its entirety, including the title field.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -135,6 +135,11 @@ struct PostListFilteredView: View {
|
||||
|
||||
struct PostListFilteredView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
return PostListFilteredView(collection: nil, showAllPosts: false, postCount: .constant(999))
|
||||
return PostListFilteredView(
|
||||
collection: nil,
|
||||
showAllPosts: false,
|
||||
postCount: .constant(999)
|
||||
)
|
||||
.environmentObject(WriteFreelyModel())
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ struct PostStatusBadgeView: View {
|
||||
.padding(EdgeInsets(top: 2.5, leading: 7.5, bottom: 2.5, trailing: 7.5))
|
||||
.background(badgeColor)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 5.0, style: .circular))
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
|
||||
func setupBadgeProperties(for status: PostStatus) -> (String, Color) {
|
||||
|
Loading…
Reference in New Issue
Block a user