Fix user page bug

This commit is contained in:
syuilo 2020-10-18 10:28:17 +09:00
parent 18ea1d88db
commit 4f45185411

View file

@ -85,8 +85,8 @@
<router-view :user="user"></router-view> <router-view :user="user"></router-view>
<template v-if="$route.name == 'user'"> <template v-if="$route.name == 'user'">
<div class="_section" v-if="user.pinnedNotes.length > 0"> <div class="_section">
<div class="_content _vMargin"> <div class="_content _vMargin" v-if="user.pinnedNotes.length > 0">
<XNote v-for="note in user.pinnedNotes" class="note _vMargin" :note="note" @update:note="pinnedNoteUpdated(note, $event)" :key="note.id" :detail="true" :pinned="true"/> <XNote v-for="note in user.pinnedNotes" class="note _vMargin" :note="note" @update:note="pinnedNoteUpdated(note, $event)" :key="note.id" :detail="true" :pinned="true"/>
</div> </div>
<MkFolder :body-togglable="true" class="_content _vMargin" persist-key="user-images"> <MkFolder :body-togglable="true" class="_content _vMargin" persist-key="user-images">