mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Correctly position popover aside, add list item states
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
9f2e3bab9b
commit
9a145a4d86
2 changed files with 4 additions and 2 deletions
|
@ -364,12 +364,13 @@ impl Component for ListItem {
|
|||
}
|
||||
}
|
||||
})
|
||||
.bg(cx.theme().colors().surface_background)
|
||||
// TODO: Add focus state
|
||||
// .when(self.state == InteractionState::Focused, |this| {
|
||||
// this.border()
|
||||
// .border_color(cx.theme().colors().border_focused)
|
||||
// })
|
||||
.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
|
||||
.active(|style| style.bg(cx.theme().colors().ghost_element_active))
|
||||
.child(
|
||||
sized_item
|
||||
.when(self.variant == ListItemVariant::Inset, |this| this.px_2())
|
||||
|
|
|
@ -27,7 +27,8 @@ impl Component for Popover {
|
|||
this.child(
|
||||
v_stack()
|
||||
.top_0()
|
||||
.neg_right_1()
|
||||
.left_full()
|
||||
.ml_1()
|
||||
.absolute()
|
||||
.elevation_2(cx)
|
||||
.p_1()
|
||||
|
|
Loading…
Reference in a new issue