mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Fix search field on macOS
This commit is contained in:
parent
8d9bbf647a
commit
759a942426
@ -37,6 +37,7 @@ struct SearchTextField: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
|
.frame(maxWidth: 190)
|
||||||
.textFieldStyle(.plain)
|
.textFieldStyle(.plain)
|
||||||
#else
|
#else
|
||||||
.textFieldStyle(.roundedBorder)
|
.textFieldStyle(.roundedBorder)
|
||||||
@ -52,6 +53,11 @@ struct SearchTextField: View {
|
|||||||
.padding(.trailing)
|
.padding(.trailing)
|
||||||
#endif
|
#endif
|
||||||
clearButton
|
clearButton
|
||||||
|
} else {
|
||||||
|
#if os(macOS)
|
||||||
|
clearButton
|
||||||
|
.opacity(0)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user