From 537631002b2c0c3dd4c8d1825219b4165af4fdcb Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Sun, 3 Feb 2019 14:47:02 -0500
Subject: Add logo and sitename to the side drawer area

---
 src/components/side_drawer/side_drawer.vue | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

(limited to 'src/components/side_drawer/side_drawer.vue')

diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index fc90977b..2810d0c7 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -8,8 +8,11 @@
       @touchmove="touchMove"
     >
       <div class="side-drawer-heading" @click="toggleDrawer">
-        <user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser">
-        </user-card-content>
+        <div class="side-drawer__logo-wrapper">
+          <img :src="logo"/>
+          <span>{{sitename}}</span>
+        </div>
+        <user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser"/>
       </div>
       <ul>
         <li v-if="currentUser" @click="toggleDrawer">
@@ -139,6 +142,24 @@
   box-shadow: var(--panelShadow);
   background-color: $fallback--bg;
   background-color: var(--bg, $fallback--bg);
+
+  &__logo-wrapper {
+    display: flex;
+    align-items: center;
+    padding: 0.85em;
+
+    img {
+      flex: none;
+      height: 50px;
+      margin-right: 0.85em;
+    }
+
+    span {
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+    }
+  }
 }
 
 .side-drawer-click-outside-closed {
-- 
cgit v1.2.3-70-g09d2

