Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 19, 2025
1 parent 196e417 commit ba0ced7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
47 changes: 25 additions & 22 deletions crates/devtools/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion crates/hooks/src/theming/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit ba0ced7

Please sign in to comment.