Skip to content

Commit 34ecb5d

Browse files
committed
Add a tiny reject/close button to compact suggestion panel
1 parent 8171174 commit 34ecb5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Core/Sources/SuggestionWidget/SuggestionPanelContent/CodeBlockSuggestionPanel.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ struct CodeBlockSuggestionPanel: View {
7272
}.buttonStyle(.plain)
7373

7474
Spacer()
75+
76+
Button(action: {
77+
suggestion.rejectSuggestion()
78+
}) {
79+
Image(systemName: "xmark")
80+
}.buttonStyle(.plain)
7581
}
7682
.padding(4)
7783
.font(.caption)

0 commit comments

Comments
 (0)