EditorTabs · the close button over a dirty or inactive tab stays pressable: clear, not hidden

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 20:26:07 -04:00
1 parent aa0c99dd70
commit f756043853
1 file changed
+3 -2
+3 -2
View File
@@ -234,10 +234,11 @@ impl RenderOnce for EditorTabs {
div()
.absolute()
.size_full()
// Clear, not hidden: it still takes a press.
.when(hidden, |cover| {
cover
.invisible()
.group_hover(group.clone(), |style| style.visible())
.opacity(0.)
.group_hover(group.clone(), |style| style.opacity(1.))
})
.child(close_button),
)