We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb962c commit 2f0be3fCopy full SHA for 2f0be3f
1 file changed
Core/Sources/SuggestionWidget/ChatWindowView.swift
@@ -333,8 +333,10 @@ struct ChatTabContainer: View {
333
} else {
334
ForEach(viewStore.state.tabInfo) { tabInfo in
335
if let tab = chatTabPool.getTab(of: tabInfo.id) {
336
+ let isActive = tab.id == viewStore.state.selectedTabId
337
tab.body
- .opacity(tab.id == viewStore.state.selectedTabId ? 1 : 0)
338
+ .opacity(isActive ? 1 : 0)
339
+ .disabled(!isActive)
340
.frame(maxWidth: .infinity, maxHeight: .infinity)
341
342
EmptyView()
0 commit comments