logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe

user_finder.vue (782B)


      1 <template>
      2   <span class="user-finder-container">
      3     <i class="icon-spin4 user-finder-icon animate-spin-slow" v-if="loading" />
      4     <a href="#" v-if="hidden"><i class="icon-user-plus user-finder-icon" @click.prevent.stop="toggleHidden"/></a>
      5     <span v-else>
      6       <input class="user-finder-input" @keyup.enter="findUser(username)" v-model="username" :placeholder="$t('finder.find_user')" id="user-finder-input" type="text"/>
      7       <i class="icon-cancel user-finder-icon" @click.prevent.stop="toggleHidden"/>
      8     </span>
      9   </span>
     10 </template>
     11 
     12 <script src="./user_finder.js"></script>
     13 
     14 <style lang="scss">
     15 @import '../../_variables.scss';
     16 
     17 .user-finder-container {
     18   height: 29px;
     19   max-width: 100%;
     20 }
     21 
     22 .user-finder-input {
     23   max-width: 80%;
     24   vertical-align: middle;
     25 }
     26 
     27 </style>