Skip to content

Commit eeb9eb8

Browse files
YohYamasakiKeavon
authored andcommitted
Fix alignment of the radio buttons in right panel
1 parent e9201b3 commit eeb9eb8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

editor/src/messages/portfolio/document/node_graph/node_properties.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ pub(crate) fn fill_properties(node_id: NodeId, context: &mut NodePropertiesConte
20072007

20082008
widgets.push(LayoutGroup::row(row));
20092009

2010-
let mut spread_methods_row: Vec<WidgetInstance> = vec![];
2010+
let mut spread_methods_row: Vec<WidgetInstance> = vec![TextLabel::new("").widget_instance(), Separator::new(SeparatorStyle::Unrelated).widget_instance()];
20112011

20122012
let spread_method_entries = [GradientSpreadMethod::Pad, GradientSpreadMethod::Reflect, GradientSpreadMethod::Repeat]
20132013
.iter()
@@ -2051,6 +2051,7 @@ pub(crate) fn fill_properties(node_id: NodeId, context: &mut NodePropertiesConte
20512051
})
20522052
.collect();
20532053

2054+
add_blank_assist(&mut spread_methods_row);
20542055
spread_methods_row.extend_from_slice(&[RadioInput::new(spread_method_entries).selected_index(Some(gradient.spread_method as u32)).widget_instance()]);
20552056

20562057
widgets.push(LayoutGroup::row(spread_methods_row));

0 commit comments

Comments
 (0)