Skip to content

Commit

Permalink
Workspace + bigger focused post
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Nov 27, 2024
1 parent f0a0dce commit 53f9c2d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
11 changes: 11 additions & 0 deletions IcySky.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
},
{
"path": "../../../../Library/Developer/Xcode/DerivedData/IcySky-ddbwzwfxthgsenftplwefdqobzne/SourcePackages/checkouts/ATProtoKit/Sources/ATProtoKit"
}
],
"settings": {}
}
6 changes: 3 additions & 3 deletions Packages/Features/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"originHash" : "8e865ac5b92b51d86162a48a379da9eab5e389a2eecbe872b66cb60099827fdf",
"originHash" : "275a962b5ea9fc3367fd41553d9d267229118195b4661a203e6be78045890bc4",
"pins" : [
{
"identity" : "atprotokit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/MasterJ93/ATProtoKit",
"state" : {
"revision" : "08923750931951495bbb55371dbbb06cb90f5e13",
"version" : "0.20.0"
"branch" : "main",
"revision" : "ca2ea402e498273fce3e181ed767019f51305280"
}
},
{
Expand Down
10 changes: 7 additions & 3 deletions Packages/Features/Sources/PostUI/Row/PostRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ extension EnvironmentValues {

struct PostRowView: View {
@Environment(\.isQuote) var isQuote
@Environment(\.isFocused) var isFocused
@Environment(\.sizeCategory) var sizeCategory

@Environment(Router.self) var router

let post: PostItem
Expand Down Expand Up @@ -68,7 +71,8 @@ struct PostRowView: View {
Circle()
.stroke(
LinearGradient(
colors: post.hasReply ? [.purple, .indigo] : [.shadowPrimary.opacity(0.5), .indigo.opacity(0.5)],
colors: post.hasReply
? [.purple, .indigo] : [.shadowPrimary.opacity(0.5), .indigo.opacity(0.5)],
startPoint: .topLeading,
endPoint: .bottomTrailing),
lineWidth: 1)
Expand Down Expand Up @@ -99,9 +103,9 @@ struct PostRowView: View {
@ViewBuilder
private var bodyView: some View {
Text(post.content)
.font(.body)
.font(isFocused ? .system(size: UIFontMetrics.default.scaledValue(for: 20)) : .body)
}

@ViewBuilder
private var threadLineView: some View {
if post.hasReply {
Expand Down

0 comments on commit 53f9c2d

Please sign in to comment.