Browse Source

处理logo的bug

ljb 8 months ago
parent
commit
026df80fcb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/page/index/logo.vue

+ 3 - 3
src/page/index/logo.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-  <div class="avue-logo" style="width: 310px">
+  <div class="avue-logo">
     <div style="display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;">
     <div style="display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;">
     <transition name="fade">
     <transition name="fade">
       <!-- <span v-if="keyCollapse"
       <!-- <span v-if="keyCollapse"
@@ -7,7 +7,7 @@
             key="0">
             key="0">
         <img :src="teantData.logoUrl" style="width: 45px;" />
         <img :src="teantData.logoUrl" style="width: 45px;" />
       </span> -->
       </span> -->
-      <img :src="teantData.logoUrl" style="padding-left: 36px; width: 45px;" />
+      <img :src="teantData.logoUrl" :style="`padding-left: ${!keyCollapse ? 12 : 3}px; width: 45px;`" />
     </transition>
     </transition>
     <template v-if="!keyCollapse">
     <template v-if="!keyCollapse">
       <div style="flex: 1; overflow: hidden; white-space: nowrap;">
       <div style="flex: 1; overflow: hidden; white-space: nowrap;">
@@ -72,7 +72,7 @@ export default {
   font-size: 20px;
   font-size: 20px;
   overflow: hidden;
   overflow: hidden;
   box-sizing: border-box;
   box-sizing: border-box;
-  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
+  // box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
   color: rgba(255, 255, 255, 0.8);
   color: rgba(255, 255, 255, 0.8);
   z-index: 1024;
   z-index: 1024;
   &_title {
   &_title {