7a13c530c7
* upstream/develop: addressed PR comments added tooltip Add userId property to timelines so that we don't overwrite user timeline meant for another user Added option to auto-hide subject field when it's empty. removes hacks from notifications storage, adds api call to let server update is_seen attribute fixes vimium not giving retweet button a hint
41 lines
1.1 KiB
Vue
41 lines
1.1 KiB
Vue
<template>
|
|
<span class="user-finder-container">
|
|
<i class="icon-spin4 user-finder-icon animate-spin-slow" v-if="loading" />
|
|
<a href="#" v-if="hidden" :title="$t('finder.find_user')"><i class="icon-user-plus user-finder-icon" @click.prevent.stop="toggleHidden" /></a>
|
|
<template v-else>
|
|
<input class="user-finder-input" @keyup.enter="findUser(username)" v-model="username" :placeholder="$t('finder.find_user')" id="user-finder-input" type="text"/>
|
|
<button class="btn search-button" @click="findUser(username)">
|
|
<i class="icon-search"/>
|
|
</button>
|
|
<i class="icon-cancel user-finder-icon" @click.prevent.stop="toggleHidden"/>
|
|
</template>
|
|
</span>
|
|
</template>
|
|
|
|
<script src="./user_finder.js"></script>
|
|
|
|
<style lang="scss">
|
|
@import '../../_variables.scss';
|
|
|
|
.user-finder-container {
|
|
max-width: 100%;
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
vertical-align: baseline;
|
|
|
|
|
|
.user-finder-input,
|
|
.search-button {
|
|
height: 29px;
|
|
}
|
|
.user-finder-input {
|
|
max-width: 80%;
|
|
}
|
|
|
|
.search-button {
|
|
margin-left: .5em;
|
|
margin-right: .5em;
|
|
}
|
|
}
|
|
|
|
</style>
|