add small menu

This commit is contained in:
2020-04-07 23:43:50 +02:00
parent edf96000b0
commit eb28a0a577
16 changed files with 132 additions and 55 deletions

View File

@@ -4,7 +4,7 @@
<Avatar :avatar="authUser.data.attributes.avatar" size="small" :alt="authUser.data.attributes.name" class="mr-1"/>
{{ authUser.data.attributes.name }}
</router-link>
<form v-if="authUser" class="search-box">
<form v-if="authUser && search" class="search-box">
<input type="search" name="search" placeholder="Search">
<button type="submit" value="S">
<svg-vue icon="search" />
@@ -33,6 +33,11 @@
components: {
Avatar
},
data: function () {
return {
search: false,
}
},
computed: {
...mapGetters({
authUser: 'authUser',