Skip to content

Commit bc4ad25

Browse files
committed
Use trash icon to clear history in Monterey
1 parent 4507304 commit bc4ad25

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,18 @@ struct ChatPanelInputArea: View {
131131
Button(action: {
132132
chat.clear()
133133
}) {
134-
Image(systemName: "eraser.line.dashed.fill")
135-
.padding(8)
136-
.background(
137-
.regularMaterial,
138-
in: RoundedRectangle(cornerRadius: 8, style: .continuous)
139-
)
134+
Group {
135+
if #available(macOS 13.0, *) {
136+
Image(systemName: "eraser.line.dashed.fill")
137+
} else {
138+
Image(systemName: "trash.fill")
139+
}
140+
}
141+
.padding(8)
142+
.background(
143+
.regularMaterial,
144+
in: RoundedRectangle(cornerRadius: 8, style: .continuous)
145+
)
140146
}
141147
.buttonStyle(.plain)
142148
.xcodeStyleFrame()

0 commit comments

Comments
 (0)