From 89c58bcb6fe043335aa912ab844e3500923df2b6 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Wed, 20 Nov 2019 14:42:25 -0800 Subject: [PATCH] [css] Simplifying SQL toolbar item margins, fixing overflow bug (#8596) * lots of margin adjustments and simplifications * class -> className * correcting class name to match conventions (NorthPane -> north-pane) --- .../src/SqlLab/components/SqlEditor.jsx | 34 +++++++++---------- .../components/TemplateParamsEditor.jsx | 1 - superset/assets/src/SqlLab/main.less | 19 +++++++++-- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/superset/assets/src/SqlLab/components/SqlEditor.jsx b/superset/assets/src/SqlLab/components/SqlEditor.jsx index f6c52c231..63db4c22e 100644 --- a/superset/assets/src/SqlLab/components/SqlEditor.jsx +++ b/superset/assets/src/SqlLab/components/SqlEditor.jsx @@ -143,7 +143,6 @@ class SqlEditor extends React.PureComponent { onResizeStart() { // Set the heights on the ace editor and the ace content area after drag starts // to smooth out the visual transition to the new heights when drag ends - document.getElementById('brace-editor').style.height = `calc(100% - ${SQL_TOOLBAR_HEIGHT}px)`; document.getElementsByClassName('ace_content')[0].style.height = '100%'; } onResizeEnd([northPercent, southPercent]) { @@ -314,7 +313,7 @@ class SqlEditor extends React.PureComponent { onDragStart={this.onResizeStart} onDragEnd={this.onResizeEnd} > -
+
- + ); } @@ -394,9 +393,9 @@ class SqlEditor extends React.PureComponent { : t('You must run the query successfully first'); return (
-
+
- + + } {isFeatureEnabled(FeatureFlag.SCHEDULED_QUERIES) && - + } - + - + - - {ctasControls} - - + { ctasControls && ( + + {ctasControls} + + )} + - +
-
+
{ diff --git a/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx b/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx index c945b060b..07746902f 100644 --- a/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx +++ b/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx @@ -121,7 +121,6 @@ export default class TemplateParamsEditor extends React.Component { modalTitle={t('Template Parameters')} triggerNode={