wip
This commit is contained in:
parent
d39c153c57
commit
4eab9b4354
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="ftskorzw wide _section" v-if="user && narrow === false">
|
<div>
|
||||||
|
<div class="ftskorzw wide _section" v-if="user && narrow === false">
|
||||||
<div class="banner-container" :style="style">
|
<div class="banner-container" :style="style">
|
||||||
<div class="banner" ref="banner" :style="style"></div>
|
<div class="banner" ref="banner" :style="style"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,8 +85,8 @@
|
||||||
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_vMargin"/>
|
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_vMargin"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ftskorzw narrow _section" v-else-if="user && narrow === true" v-size="{ max: [500] }">
|
<div class="ftskorzw narrow _section" v-else-if="user && narrow === true" v-size="{ max: [500] }">
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
<!-- <div class="punished" v-if="user.isSuspended"><Fa :icon="faExclamationTriangle" style="margin-right: 8px;"/> {{ $t('userSuspended') }}</div> -->
|
<!-- <div class="punished" v-if="user.isSuspended"><Fa :icon="faExclamationTriangle" style="margin-right: 8px;"/> {{ $t('userSuspended') }}</div> -->
|
||||||
<!-- <div class="punished" v-if="user.isSilenced"><Fa :icon="faExclamationTriangle" style="margin-right: 8px;"/> {{ $t('userSilenced') }}</div> -->
|
<!-- <div class="punished" v-if="user.isSilenced"><Fa :icon="faExclamationTriangle" style="margin-right: 8px;"/> {{ $t('userSilenced') }}</div> -->
|
||||||
|
@ -171,11 +172,11 @@
|
||||||
|
|
||||||
<template v-if="page === 'index'">
|
<template v-if="page === 'index'">
|
||||||
<div class="_content _vMargin">
|
<div class="_content _vMargin">
|
||||||
<div v-if="user.pinnedNotes.length > 0">
|
<div v-if="user.pinnedNotes.length > 0" class="_vMargin">
|
||||||
<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>
|
||||||
<XPhotos :user="user" :key="user.id"/>
|
<XPhotos :user="user" :key="user.id" class="_vMargin"/>
|
||||||
<XActivity :user="user" :key="user.id"/>
|
<XActivity :user="user" :key="user.id" class="_vMargin"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="_content _vMargin">
|
<div class="_content _vMargin">
|
||||||
<XUserTimeline :user="user" class="_content"/>
|
<XUserTimeline :user="user" class="_content"/>
|
||||||
|
@ -183,9 +184,10 @@
|
||||||
</template>
|
</template>
|
||||||
<XFollowList v-else-if="page === 'following'" type="following" :user="user" class="_content _vMargin"/>
|
<XFollowList v-else-if="page === 'following'" type="following" :user="user" class="_content _vMargin"/>
|
||||||
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_content _vMargin"/>
|
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_content _vMargin"/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="error">
|
<div v-else-if="error">
|
||||||
<MkError @retry="fetch()"/>
|
<MkError @retry="fetch()"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -718,7 +720,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
&.max-width_500px {
|
&.max-width_500px {
|
||||||
> .profile > ._content {
|
> .profile > .main {
|
||||||
> .banner-container {
|
> .banner-container {
|
||||||
height: 140px;
|
height: 140px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue