-
Notifications
You must be signed in to change notification settings - Fork 47
feat: update feedback section to vertical layout in settings #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -45,17 +45,25 @@ struct SettingsPage: View { | |||||||||
| safariURL = IdentifiableURL(url: url) | ||||||||||
| } | ||||||||||
| } label: { | ||||||||||
| SectionView("问题反馈", showDivider: false) { | ||||||||||
| HStack { | ||||||||||
| Image(systemName: "") | ||||||||||
| .padding(.leading, 15) | ||||||||||
| HStack { | ||||||||||
| Text("唯一反馈渠道") | ||||||||||
| .font(.footnote) | ||||||||||
| .foregroundColor(.secondaryText) | ||||||||||
| VStack(alignment: .leading, spacing: 4) { | ||||||||||
| Text("问题反馈") | ||||||||||
| Text("唯一渠道: https://v2er.app/help") | ||||||||||
| .font(.footnote) | ||||||||||
| .foregroundColor(.secondaryText) | ||||||||||
| } | ||||||||||
|
||||||||||
| } | |
| } | |
| .accessibilityElement(children: .combine) | |
| .accessibilityLabel("问题反馈,唯一渠道:https://v2er.app/help") |
Copilot
AI
Dec 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing padding value of 30 is inconsistent with the padding pattern used throughout the settings page. SectionView uses paddingH=15, and the "关于" section uses .padding(.trailing, 16). This inconsistency may cause misalignment with other settings items.
| .padding(.trailing, 30) | |
| .padding(.trailing, 16) |
Copilot
AI
Dec 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The padding structure is inconsistent with other settings items. Looking at SectionView and SectionItemView, they use paddingH=15 for leading/trailing padding and don't duplicate the HStack wrapper. This custom implementation deviates from the established pattern used by items like "外观设置", "通用设置", etc., which use SectionItemView directly. Consider using SectionView or SectionItemView with a custom content closure to maintain consistency with the rest of the settings page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty string is being passed to the systemName parameter of the Image initializer. This will likely fail to render an icon or produce a runtime warning. If no icon is intended, this Image view should be removed entirely, or a valid system icon name should be provided (like other settings items).