fix cover & home memos display

This commit is contained in:
Romulus21
2021-01-03 09:38:31 +01:00
parent 109dffca0f
commit e8e04bf6da
5 changed files with 15 additions and 11 deletions

View File

@@ -16,8 +16,8 @@
</div>
<Loader v-if="loading" />
<div v-else class="flex flex-wrap -m-2">
<div v-if="memos.lenght === 0">
<p>No memos yet. <router-link to="/memos/create">Get Started ></router-link></p>
<div v-if="memos.length === 0" class="pt-4 text-center w-full">
<p>No memos yet. <router-link :to="'/memos/create'" class="btn-primary">Get Started ></router-link></p>
</div>
<router-link v-for="memo in memos" :key="memo.data.memo_id" :to="'/memos/' + memo.data.memo_id" class="flex-initial sm:mx-auto md:w-1/2 md:mx-0 lg:w-1/3 xl:w-1/4 mb-4 no-underline">
<div class="card sm:max-w-124">