diff --git a/crates/devtools/src/node.rs b/crates/devtools/src/node.rs index 3b19810ff..61f24c4c7 100644 --- a/crates/devtools/src/node.rs +++ b/crates/devtools/src/node.rs @@ -82,29 +82,32 @@ pub fn NodeElement( direction: "horizontal", width: "fill", cross_align: "center", - if let Some(is_open) = is_open { - { - let arrow_degree = if is_open { - 0 - } else { - 270 - }; - rsx!( - OutlineButton { - theme: theme_with!(ButtonTheme { - corner_radius: "99".into(), - border_fill: "none".into(), - padding: "2".into(), - background: "none".into(), - hover_background: "none".into(), - }), - onpress: onopen, - ArrowIcon { - fill: "white", - rotate: "{arrow_degree}" + rect { + width: "20", + if let Some(is_open) = is_open { + { + let arrow_degree = if is_open { + 0 + } else { + 270 + }; + rsx!( + OutlineButton { + theme: theme_with!(ButtonTheme { + corner_radius: "99".into(), + border_fill: "none".into(), + padding: "2".into(), + background: "none".into(), + hover_background: "none".into(), + }), + onpress: onopen, + ArrowIcon { + fill: "white", + rotate: "{arrow_degree}" + } } - } - ) + ) + } } } label { diff --git a/crates/hooks/src/theming/mod.rs b/crates/hooks/src/theming/mod.rs index 29bd261d3..4d7ead5e2 100644 --- a/crates/hooks/src/theming/mod.rs +++ b/crates/hooks/src/theming/mod.rs @@ -173,8 +173,8 @@ macro_rules! theme_with { ),* $(,)? }) => { $crate::paste! { - // #[allow(clippy::needless_update)] [<$theme_name With>] { + #[allow(clippy::needless_update)] $($theme_field_name: Some($theme_field_val),)* ..$crate::Default::default() }