EditorTabs · the close button over a dirty or inactive tab stays pressable: clear, not hidden
This commit is contained in:
1 file changed
+3
-2
@@ -234,10 +234,11 @@ impl RenderOnce for EditorTabs {
|
|||||||
div()
|
div()
|
||||||
.absolute()
|
.absolute()
|
||||||
.size_full()
|
.size_full()
|
||||||
|
// Clear, not hidden: it still takes a press.
|
||||||
.when(hidden, |cover| {
|
.when(hidden, |cover| {
|
||||||
cover
|
cover
|
||||||
.invisible()
|
.opacity(0.)
|
||||||
.group_hover(group.clone(), |style| style.visible())
|
.group_hover(group.clone(), |style| style.opacity(1.))
|
||||||
})
|
})
|
||||||
.child(close_button),
|
.child(close_button),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user