Skip to content

Commit

Permalink
only show tooltip if not empty text
Browse files Browse the repository at this point in the history
  • Loading branch information
akarras committed Jun 20, 2024
1 parent 76a3360 commit 12a7fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ultros-frontend/ultros-app/src/components/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ pub fn Tooltip(

let tooltip = {
move || {
is_hover.get().then(move || {
(tooltip_text.with(|t| !t.is_empty()) &&
is_hover.get()).then(move || {
let (screen_width, screen_height) = use_window_size();
let (scroll_x, scroll_y) = use_window_scroll();
let node_ref = create_node_ref::<Div>();
Expand Down

0 comments on commit 12a7fe2

Please sign in to comment.