-
+
diff --git a/client/app/assets/less/inc/schema-browser.less b/client/app/assets/less/inc/schema-browser.less index f8417054..00343910 100644 --- a/client/app/assets/less/inc/schema-browser.less +++ b/client/app/assets/less/inc/schema-browser.less @@ -62,7 +62,7 @@ div.table-name { &:hover { background: fade(@redash-gray, 10%); - + .copy-to-editor { display: flex; } @@ -75,7 +75,6 @@ div.table-name { padding: 0; .form-control { - height: 30px; margin-right: 5px; } } diff --git a/client/app/assets/less/redash/query.less b/client/app/assets/less/redash/query.less index b6186bc7..ffb3d90d 100644 --- a/client/app/assets/less/redash/query.less +++ b/client/app/assets/less/redash/query.less @@ -302,6 +302,15 @@ edit-in-place p.editable:hover { flex-direction: column; padding-bottom: 0; padding-top: 0 !important; + position: relative; + + schema-browser { + position: absolute; + left: 15px; + top: 0; + right: 15px; + bottom: 0; + } } } main { diff --git a/client/app/directives/resizable-toggle.js b/client/app/directives/resizable-toggle.js index 1118ae44..d233ca57 100644 --- a/client/app/directives/resizable-toggle.js +++ b/client/app/directives/resizable-toggle.js @@ -1,9 +1,13 @@ +import { find } from 'underscore'; + function sameNumber(a, b) { return (isNaN(a) && isNaN(b)) || (a === b); } -const flexBasis = ['flexBasis', 'webkitFlexBasis', 'msFlexPreferredSize'] - .find(prop => prop in document.documentElement.style) || 'flexBasis'; +const flexBasis = find( + ['flexBasis', 'webkitFlexBasis', 'msFlexPreferredSize'], + prop => prop in document.documentElement.style, +) || 'flexBasis'; const threshold = 5; diff --git a/client/app/pages/queries/query.html b/client/app/pages/queries/query.html index 9fabf013..32b51284 100644 --- a/client/app/pages/queries/query.html +++ b/client/app/pages/queries/query.html @@ -118,119 +118,123 @@
-
+