This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch template_less_preset_theme_editor in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7582d0f07b352aeeeb2c5870cd4776732b484d18 Author: Maxime Beauchemin <[email protected]> AuthorDate: Tue Apr 1 08:35:11 2025 -0700 simplify --- superset-frontend/src/components/ThemeEditor/index.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/superset-frontend/src/components/ThemeEditor/index.tsx b/superset-frontend/src/components/ThemeEditor/index.tsx index f1337b1fb8..672fced5c3 100644 --- a/superset-frontend/src/components/ThemeEditor/index.tsx +++ b/superset-frontend/src/components/ThemeEditor/index.tsx @@ -216,14 +216,8 @@ export default function ThemeEditor() { } function ThemeSection({ children, layout }) { - return layout === 'horizontal' ? ( - <Form layout="horizontal"> - <div style={{ display: 'flex', flexWrap: 'wrap', gap: 16 }}> - {children} - </div> - </Form> - ) : ( - <Form layout="vertical"> + return ( + <Form layout={layout}> <div style={{ display: 'flex', flexWrap: 'wrap', gap: 16 }}> {children} </div>
