Răsfoiți Sursa

HUE-8926 [frontend] Show the Hue logo when the app switcher is enabled

Johan Ahlen 6 ani în urmă
părinte
comite
cd2ddbc478

+ 1 - 0
desktop/core/src/desktop/js/ko/components/appSwitcher/ko.appSwitcher.js

@@ -24,6 +24,7 @@ import { getAltusBaseUrl, getMowBaseUrl } from 'ko/components/appSwitcher/enviro
 const TEMPLATE = `
   <div class="hue-sidebar-header">
     <a class="hue-app-switcher-trigger" data-bind="toggle: open"><svg class="show"><use xlink:href="#hi-app-picker"></use></svg></a>
+    <div class="hue-app-switcher-logo"><svg><use xlink:href="#hi-sidebar-logo"></use></svg></div>
   </div>
 
   <div class="hue-app-switcher" data-bind="css: { 'open': open }">

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 3 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-app-switcher.less

@@ -57,6 +57,9 @@
     box-shadow: -2px 2px 4px 0 rgba(27, 35, 41, 0.2);
     box-shadow: 0 0 16px rgba(0, 0, 0, 0.28);
     opacity: 1;
+    .hue-app-switcher-logo {
+      display: block;
+    }
   }
 
   h3 {

+ 11 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-sidebar.less

@@ -98,6 +98,17 @@
       }
     }
 
+    .hue-app-switcher-logo {
+      margin-left: 30px;
+      overflow-x: hidden;
+      color: @cui-white;
+
+      svg {
+        height: 32px;
+        width: 100px;
+      }
+    }
+
     .title {
       margin-left: 8px;
       white-space: nowrap;

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff