mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 03:15:03 +00:00
Pad comment focus area and remove dividers on tvOS
This commit is contained in:
@@ -511,7 +511,7 @@ struct TVCommentsListView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var commentsList: some View {
|
private var commentsList: some View {
|
||||||
LazyVStack(alignment: .leading, spacing: 0) {
|
LazyVStack(alignment: .leading, spacing: 8) {
|
||||||
ForEach(comments) { comment in
|
ForEach(comments) { comment in
|
||||||
TVFocusableCommentView(comment: comment, videoID: videoID)
|
TVFocusableCommentView(comment: comment, videoID: videoID)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
@@ -520,11 +520,6 @@ struct TVCommentsListView: View {
|
|||||||
Task { await loadMoreComments() }
|
Task { await loadMoreComments() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if comment.id != comments.last?.id {
|
|
||||||
Divider()
|
|
||||||
.background(.white.opacity(0.2))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loading more indicator
|
// Loading more indicator
|
||||||
@@ -866,6 +861,7 @@ struct TVCommentButtonStyle: ButtonStyle {
|
|||||||
|
|
||||||
func makeBody(configuration: Configuration) -> some View {
|
func makeBody(configuration: Configuration) -> some View {
|
||||||
configuration.label
|
configuration.label
|
||||||
|
.padding(.horizontal, 16)
|
||||||
.background(
|
.background(
|
||||||
RoundedRectangle(cornerRadius: 8)
|
RoundedRectangle(cornerRadius: 8)
|
||||||
.fill(isFocused ? .white.opacity(0.1) : .clear)
|
.fill(isFocused ? .white.opacity(0.1) : .clear)
|
||||||
|
|||||||
Reference in New Issue
Block a user