Эх сурвалжийг харах

HUE-9485 [frontend] Make SQL text bg transparent

sreenaths 5 жил өмнө
parent
commit
4bc9a123ee

+ 8 - 8
desktop/core/src/desktop/js/components/SqlText.vue

@@ -139,14 +139,14 @@
         );
       });
 
-      this.$el.innerHTML =
-        '<div class="ace_editor ace-hue"' +
-        (this.enableOverflow ? ' style="overflow: initial !important;"' : '') +
-        '><div class="ace_layer" style="position: static;' +
-        (this.enableOverflow ? ' overflow: initial !important;' : '') +
-        '">' +
-        res.join('') +
-        '</div></div>';
+      const overflowStyle = this.enableOverflow ? ' overflow: initial !important;' : '';
+      //TODO - Move inline styles to CSS class
+      this.$el.innerHTML = `
+        <div class="ace_editor ace-hue" style="background-color: transparent; ${overflowStyle}">
+          <div class="ace_layer" style="position: static; ${overflowStyle}">${res.join('')}</div>
+        </div>
+      `;
+
       if (this.enableOverflow) {
         $(this.$el).css({ overflow: 'auto' });
       }