From 0e86681aba522f8c530a030b0e3c9745ec415eed Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Wed, 27 Feb 2019 11:58:29 -0500
Subject: Merge all slots of BasicUserCard into one

---
 src/components/basic_user_card/basic_user_card.vue | 58 +++-------------------
 1 file changed, 8 insertions(+), 50 deletions(-)

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

diff --git a/src/components/basic_user_card/basic_user_card.vue b/src/components/basic_user_card/basic_user_card.vue
index 0563360a..ff3d0d09 100644
--- a/src/components/basic_user_card/basic_user_card.vue
+++ b/src/components/basic_user_card/basic_user_card.vue
@@ -7,26 +7,16 @@
       <user-card-content :user="user" :switcher="false"></user-card-content>
     </div>
     <div class="user-card-collapsed-content" v-else>
-      <div class="user-card-primary-secondary-wrapper">
-        <div class="user-card-primary-area">
-          <div :title="user.name" class="user-card-user-name">
-            <span v-if="user.name_html" v-html="user.name_html"></span>
-            <span v-else>{{ user.name }}</span>
-          </div>
-          <div>
-            <router-link :to="userProfileLink(user)">
-              @{{user.screen_name}}
-            </router-link>
-          </div>
-          <slot name="primary-area"></slot>
-        </div>
-        <div class="user-card-secondary-area">
-          <slot name="secondary-area"></slot>
-        </div>
+      <div :title="user.name" class="user-card-user-name">
+        <span v-if="user.name_html" v-html="user.name_html"></span>
+        <span v-else>{{ user.name }}</span>
       </div>
-      <div class="user-card-tertiary-area">
-        <slot name="tertiary-area"></slot>
+      <div>
+        <router-link :to="userProfileLink(user)">
+          @{{user.screen_name}}
+        </router-link>
       </div>
+      <slot></slot>
     </div>
   </div>
 </template>
@@ -52,19 +42,6 @@
     margin-left: 0.7em;
     text-align: left;
     flex: 1;
-    min-width: 0;
-  }
-
-  &-primary-secondary-wrapper {
-    display: flex;
-    align-items: flex-start;
-    justify-content: space-between;
-  }
-
-  &-primary-area {
-    flex: 1;
-    margin-right: 1em;
-    min-width: 0;
   }
 
   &-user-name {
@@ -76,15 +53,6 @@
     }
   }
 
-  &-secondary-area {
-    flex: none;
-
-    .btn {
-      margin-top: .5em;
-      width: 10em;
-    }
-  }
-
   &-expanded-content {
     flex: 1;
     margin-left: 0.7em;
@@ -106,15 +74,5 @@
       margin-bottom: 0;
     }
   }
-
-  @media (min-width: 320px) and (max-width: 480px) {
-    &-primary-secondary-wrapper {
-      flex-direction: column;
-    }
-
-    &-primary-area {
-      margin-right: 0;
-    }
-  }
 }
 </style>
-- 
cgit v1.2.3-70-g09d2

