Skip to content

Commit 9b0b4bc

Browse files
committed
Fix chat panel interfere
1 parent ee2aefb commit 9b0b4bc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct ChatTitleBar: View {
140140
width: Style.trafficLightButtonSize,
141141
height: Style.trafficLightButtonSize
142142
)
143-
.overlay{
143+
.overlay {
144144
Circle().stroke(lineWidth: 0.5).foregroundColor(.black.opacity(0.2))
145145
}
146146
.overlay {
@@ -395,6 +395,11 @@ struct ChatTabContainer: View {
395395
.disabled(!isActive)
396396
.allowsHitTesting(isActive)
397397
.frame(maxWidth: .infinity, maxHeight: .infinity)
398+
// move it out of window
399+
.rotationEffect(
400+
isActive ? .zero : .degrees(90),
401+
anchor: .topLeading
402+
)
398403
} else {
399404
EmptyView()
400405
}

0 commit comments

Comments
 (0)