Skip to content

Commit

Permalink
Merge pull request #1719 from planetary-social/bdm/fix-cell-layout
Browse files Browse the repository at this point in the history
fixed a minor cell layout issue on feed customizer drop-down view
  • Loading branch information
bryanmontz authored Jan 2, 2025
2 parents ad81857 + 0f21e59 commit 2f340c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added remembering which feed source is selected.
- Factored out the segmented picker on the ProfileHeader for reusability.
- Fixed a case where lists don't show up immediately after signing in.
- Fixed a minor cell layout issue on feed customizer drop-down view.

### Internal Changes
- Upgraded to Xcode 16. [#1570](https://github.com/planetary-social/nos/issues/1570)
Expand Down
8 changes: 5 additions & 3 deletions Nos/Views/Home/FeedSourceToggleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct FeedSourceToggleView<Content: View, EmptyPlaceholder: View>: View {

FeedToggleRow(item: item)
.fixedSize(horizontal: false, vertical: true)
.padding(.vertical, 4)
.padding(.vertical, 10)
.onChange(of: item.isOn) { _, _ in
feedController.toggleSourceEnabled(item.source)
}
Expand All @@ -58,13 +58,15 @@ struct FeedSourceToggleView<Content: View, EmptyPlaceholder: View>: View {
.padding(.horizontal, 16)

ViewThatFits(in: .vertical) {
VStack {
VStack(spacing: 0) {
rows
Spacer()
}

ScrollView {
rows
VStack(spacing: 0) {
rows
}
}
}
.geometryGroup()
Expand Down

0 comments on commit 2f340c6

Please sign in to comment.