فهرست منبع

HUE-7743 [editor] Improve positioning of close button for presentation and full screen results in embedded mode

Johan Ahlen 8 سال پیش
والد
کامیت
b140690

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


+ 4 - 0
desktop/core/src/desktop/static/desktop/less/hue-embedded.less

@@ -41,6 +41,10 @@
     bottom: auto;
   }
 
+  .hueAnchor {
+    position: absolute !important;
+  }
+
   * {
     box-sizing: content-box;
   }

+ 12 - 10
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -320,18 +320,20 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
   </div>
 </div>
 
-<div class="player-toolbar margin-top-10" data-bind="visible: $root.isPresentationMode() || $root.isResultFullScreenMode()" style="display: none;">
-  <!-- ko if: $root.isResultFullScreenMode() -->
-    <a class="hueAnchor collapse-results" href="javascript:void(0)" title="${ _('Collapse results') }" data-bind="click: function(){ $root.isResultFullScreenMode(false); }">
-      <i class="fa fa-times fa-fw"></i>
-    </a>
-  <!-- /ko -->
+<!-- ko if: $root.isResultFullScreenMode() -->
+<a class="hueAnchor collapse-results" href="javascript:void(0)" title="${ _('Collapse results') }" data-bind="click: function(){ $root.isResultFullScreenMode(false); }">
+  <i class="fa fa-times fa-fw"></i>
+</a>
+<!-- /ko -->
 
-  <!-- ko if: $root.isPresentationMode() -->
-    <a class="hueAnchor collapse-results" href="javascript:void(0)" title="${ _('Exit presentation') }" data-bind="click: function(){ $root.isPresentationMode(false); }">
-      <i class="fa fa-times fa-fw"></i>
-    </a>
+<!-- ko if: $root.isPresentationMode() -->
+<a class="hueAnchor collapse-results" href="javascript:void(0)" title="${ _('Exit presentation') }" data-bind="click: function(){ $root.isPresentationMode(false); }">
+  <i class="fa fa-times fa-fw"></i>
+</a>
+<!-- /ko -->
 
+<div class="player-toolbar margin-top-10" data-bind="visible: $root.isPresentationMode() || $root.isResultFullScreenMode()" style="display: none;">
+  <!-- ko if: $root.isPresentationMode() -->
     <!-- ko if: $root.selectedNotebook() -->
       <!-- ko if: $root.selectedNotebook().name() || $root.selectedNotebook().description() -->
       <h2 class="margin-left-30 margin-right-10 inline padding-left-5" data-bind="text: $root.selectedNotebook().name"></h2>

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است