Refactor and add legal links to payment pages, change contribute view's layout

This commit is contained in:
maddiebaka
2024-01-20 23:50:07 -05:00
parent 32b3ab5ee1
commit 0f2cf4af04
6 changed files with 154 additions and 50 deletions

View File

@@ -52,7 +52,7 @@ struct DictionaryView: View {
})
.buttonStyle(.bordered)
}
.padding([.top, .leading, .trailing], 8)
.padding([.top, .leading, .trailing], 16)
if advancedSearchEnabled == true {
VStack {
Text("Search for:")
@@ -88,7 +88,7 @@ struct DictionaryView: View {
.sheet(isPresented: $showGenericLegend, content: {
PartsOfSpeechView(selectedPartOfSpeech: nil)
})
.onChange(of: tokiInput) { newValue in
.onChange(of: tokiInput) {
filterByInput()
//tokiDictViewModel.filterDictionaryEnglishMode(newValue)
}

View File

@@ -31,8 +31,8 @@ struct TranslatorView: View {
}
.buttonStyle(.borderedProminent)
}
.padding([.top, .leading, .trailing], 8)
.padding([.top, .leading, .trailing], 16)
if tokiInput.count == 0 {
List(tokiDictViewModel.dictionary, id: \.word) { entry in
TokiWordsListEntryView(entry: entry, selectedPartOfSpeech: $selectedPartOfSpeech)
@@ -52,8 +52,8 @@ struct TranslatorView: View {
.sheet(item: $selectedPartOfSpeech) { selectedPOS in
PartsOfSpeechView(selectedPartOfSpeech: selectedPOS)
}
.onChange(of: tokiInput) { newValue in
tokiDictViewModel.translatePhrase(newValue)
.onChange(of: tokiInput) {
tokiDictViewModel.translatePhrase(tokiInput)
}
.onTapGesture {
hideKeyboard()