diff --git a/crates/settings_ui/src/settings_ui.rs b/crates/settings_ui/src/settings_ui.rs index b7c2994fa2..cf6177e9a8 100644 --- a/crates/settings_ui/src/settings_ui.rs +++ b/crates/settings_ui/src/settings_ui.rs @@ -100,23 +100,25 @@ impl Item for SettingsPage { } impl Render for SettingsPage { - fn render(&mut self, _cx: &mut ViewContext) -> impl IntoElement { + fn render(&mut self, cx: &mut ViewContext) -> impl IntoElement { v_flex() .p_4() .size_full() .gap_4() .child(Label::new("Settings").size(LabelSize::Large)) .child( - v_flex() - .gap_1() - .child(Label::new("Appearance")) - .child(AppearanceSettingsControls::new()), + v_flex().gap_1().child(Label::new("Appearance")).child( + v_flex() + .elevation_2(cx) + .child(AppearanceSettingsControls::new()), + ), ) .child( - v_flex() - .gap_1() - .child(Label::new("Editor")) - .child(EditorSettingsControls::new()), + v_flex().gap_1().child(Label::new("Editor")).child( + v_flex() + .elevation_2(cx) + .child(EditorSettingsControls::new()), + ), ) } } diff --git a/crates/ui/src/components/settings_container.rs b/crates/ui/src/components/settings_container.rs index a398c9070b..018b71900e 100644 --- a/crates/ui/src/components/settings_container.rs +++ b/crates/ui/src/components/settings_container.rs @@ -23,11 +23,7 @@ impl ParentElement for SettingsContainer { } impl RenderOnce for SettingsContainer { - fn render(self, cx: &mut WindowContext) -> impl IntoElement { - v_flex() - .elevation_2(cx) - .px_2() - .gap_1() - .children(self.children) + fn render(self, _cx: &mut WindowContext) -> impl IntoElement { + v_flex().px_2().gap_1().children(self.children) } }