Skip to content

Commit

Permalink
Merge pull request #7 from SirArkimedes/master
Browse files Browse the repository at this point in the history
[macOS] Adjust padding of List items on sidebar
  • Loading branch information
carson-katri authored Oct 14, 2019
2 parents bec7a48 + 151af67 commit 4faf06b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Reddit-macOS/Views/PostList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ struct PostList: View {
ForEach(listing != nil ? listing!.data.children.map { $0.data } : []) { post in
NavigationLink(destination: PostDetailView(post: post)) {
PostView(post: post)
.tag(post.id)
.tag(post.id)
.padding(EdgeInsets(top: 5, leading: 0, bottom: 5, trailing: 0))
/// Double-click to open a new window for the `PostDetailView`
.onTapGesture(count: 2) {
let controller = DetailWindowController(rootView: PostDetailView(post: post))
Expand Down

0 comments on commit 4faf06b

Please sign in to comment.