Search improvements

This commit is contained in:
Arkadiusz Fal
2022-12-11 14:28:16 +01:00
parent e3daa738ce
commit 784fc8cfc6
3 changed files with 10 additions and 18 deletions

View File

@@ -33,8 +33,8 @@ struct SearchTextField: View {
.textFieldStyle(.plain)
#else
.textFieldStyle(.roundedBorder)
.padding(.leading, 5)
.padding(.trailing, 10)
.padding(.horizontal, 5)
.padding(.trailing, state.queryText.isEmpty ? 0 : 10)
#endif
if !state.queryText.isEmpty {