Bladeren bron

Fix for misaligned badge in post list (#230)

tags/v1.0.13-ios
Angelo Stavrow 1 jaar geleden
committed by GitHub
bovenliggende
commit
f3178626d9
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4AEE18F83AFDEB23
3 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. +0
    -1
      CHANGELOG.md
  2. +6
    -1
      Shared/PostList/PostListFilteredView.swift
  3. +0
    -1
      Shared/PostList/PostStatusBadgeView.swift

+ 0
- 1
CHANGELOG.md Bestand weergeven

@@ -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



+ 6
- 1
Shared/PostList/PostListFilteredView.swift Bestand weergeven

@@ -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())
}
}

+ 0
- 1
Shared/PostList/PostStatusBadgeView.swift Bestand weergeven

@@ -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) {


Laden…
Annuleren
Opslaan