mirror of
https://github.com/imgurbot12/rmenu.git
synced 2024-11-13 04:43:46 +01:00
feat: wrap result/actions in result-entry div
This commit is contained in:
parent
34e59131f6
commit
9d71d9ac2a
@ -106,32 +106,35 @@ fn TableEntry<'a>(cx: Scope<'a, GEntry<'a>>) -> Element<'a> {
|
|||||||
});
|
});
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div {
|
div {
|
||||||
id: "result-{cx.props.index}",
|
class: "result-entry",
|
||||||
class: "result {result_classes} {multi_classes}",
|
div {
|
||||||
// onmouseenter: |_| cx.props.state.set_position(cx.props.index, 0),
|
id: "result-{cx.props.index}",
|
||||||
onclick: |_| cx.props.state.set_position(cx.props.index, 0),
|
class: "result {result_classes} {multi_classes}",
|
||||||
ondblclick: |_| cx.props.state.set_event(KeyEvent::Exec),
|
// onmouseenter: |_| cx.props.state.set_position(cx.props.index, 0),
|
||||||
if cx.props.state.config().use_icons {
|
onclick: |_| cx.props.state.set_position(cx.props.index, 0),
|
||||||
cx.render(rsx! {
|
ondblclick: |_| cx.props.state.set_event(KeyEvent::Exec),
|
||||||
div {
|
if cx.props.state.config().use_icons {
|
||||||
class: "icon",
|
cx.render(rsx! {
|
||||||
render_image(cx, cx.props.entry.icon.as_ref())
|
div {
|
||||||
}
|
class: "icon",
|
||||||
})
|
render_image(cx, cx.props.entry.icon.as_ref())
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
class: "name",
|
||||||
|
"{cx.props.entry.name}"
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
class: "comment",
|
||||||
|
render_comment(cx.props.entry.comment.as_ref())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
class: "name",
|
id: "result-{cx.props.index}-actions",
|
||||||
"{cx.props.entry.name}"
|
class: "actions {action_classes}",
|
||||||
|
actions.into_iter()
|
||||||
}
|
}
|
||||||
div {
|
|
||||||
class: "comment",
|
|
||||||
render_comment(cx.props.entry.comment.as_ref())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
div {
|
|
||||||
id: "result-{cx.props.index}-actions",
|
|
||||||
class: "actions {action_classes}",
|
|
||||||
actions.into_iter()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user