Jelajahi Sumber

HUE-7865 [autocomplete] Show the complete sample value in the details panel for long values

Johan Ahlen 7 tahun lalu
induk
melakukan
de3a280

+ 9 - 0
desktop/core/src/desktop/templates/hue_ace_autocompleter.mako

@@ -203,6 +203,15 @@ from desktop.views import _ko
   </script>
 
   <script type="text/html" id="autocomplete-details-value">
+    <!-- ko if: value.length > 31 -->
+    <div class="autocompleter-details">
+      <div class="autocompleter-header">${ _('Value')}</div>
+      <div class="autocompleter-details-contents">
+        <div class="autocompleter-details-contents-inner" style="word-wrap: break-word; white-space: normal" data-bind="text: value">
+        </div>
+      </div>
+    </div>
+    <!-- /ko -->
   </script>
 
   <script type="text/html" id="autocomplete-details-identifier">