fixed trigger word UI not appearing on custom prompts

This commit is contained in:
Beingpax 2025-05-29 12:26:28 +05:45
parent 8a1870934d
commit d120e6669a

View File

@ -206,6 +206,22 @@ struct PromptEditorView: View {
}
.padding(.horizontal)
// Trigger Word Field
VStack(alignment: .leading, spacing: 8) {
Text("Trigger Word")
.font(.headline)
.foregroundColor(.secondary)
Text("Optional word to quickly activate this prompt")
.font(.subheadline)
.foregroundColor(.secondary)
TextField("Enter a trigger word (optional)", text: $triggerWord)
.textFieldStyle(.roundedBorder)
.font(.body)
}
.padding(.horizontal)
if case .add = mode {
// Templates Section with modern styling
VStack(alignment: .leading, spacing: 16) {