Initial fix of the z-index
Co-Authored-By: Antonio Scandurra <antonio@zed.dev> Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
a9fe108dbb
commit
825a8f0927
5 changed files with 181 additions and 65 deletions
|
@ -129,6 +129,7 @@ impl RenderOnce for ListItem {
|
|||
fn render(self, cx: &mut WindowContext) -> Self::Rendered {
|
||||
h_stack()
|
||||
.id(self.id)
|
||||
.bg(gpui::green())
|
||||
.w_full()
|
||||
.relative()
|
||||
// When an item is inset draw the indent spacing outside of the item
|
||||
|
@ -171,7 +172,8 @@ impl RenderOnce for ListItem {
|
|||
})
|
||||
})
|
||||
.when_some(self.on_click, |this, on_click| {
|
||||
this.cursor_pointer().on_click(on_click)
|
||||
this.cursor_copy()
|
||||
.on_click(move |event, cx| on_click(dbg!(event), cx))
|
||||
})
|
||||
.when_some(self.on_secondary_mouse_down, |this, on_mouse_down| {
|
||||
this.on_mouse_down(MouseButton::Right, move |event, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue