Skip to content

Commit bc4a105

Browse files
committed
Fix panel border position
1 parent cf54a94 commit bc4a105

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ struct SuggestionPanelView: View {
4444
.fixedSize(horizontal: false, vertical: true)
4545
.background(Color(red: 31 / 255, green: 31 / 255, blue: 36 / 255))
4646
.clipShape(RoundedRectangle(cornerRadius: 8, style: .continuous))
47+
.overlay(
48+
RoundedRectangle(cornerRadius: 8, style: .continuous)
49+
.stroke(Color.black.opacity(0.3), style: .init(lineWidth: 1))
50+
)
4751

4852
.onHover { yes in
4953
withAnimation(.easeInOut(duration: 0.2)) {
@@ -56,10 +60,6 @@ struct SuggestionPanelView: View {
5660
.frame(minHeight: 0, maxHeight: .infinity)
5761
.allowsHitTesting(false)
5862
}
59-
.overlay(
60-
RoundedRectangle(cornerRadius: 8, style: .continuous)
61-
.stroke(Color.black.opacity(0.3), style: .init(lineWidth: 1))
62-
)
6363
.opacity({
6464
guard viewModel.isPanelDisplayed else { return 0 }
6565
guard !viewModel.suggestion.isEmpty else { return 0 }

0 commit comments

Comments
 (0)